pub struct Patch {
pub u_start: Scalar,
pub u_end: Scalar,
pub v_start: Scalar,
pub v_end: Scalar,
}Expand description
A finite parameter rectangle for tessellation.
Elementary surfaces are infinite (a plane, a cylinder) or only periodic in one direction, so a caller must say which patch it wants. Returning a default would invent geometry the source never declared.
Fields§
§u_start: ScalarStart of the u interval.
u_end: ScalarEnd of the u interval.
v_start: ScalarStart of the v interval.
v_end: ScalarEnd of the v interval.
Implementations§
Trait Implementations§
impl Copy for Patch
impl StructuralPartialEq for Patch
Auto Trait Implementations§
impl Freeze for Patch
impl RefUnwindSafe for Patch
impl Send for Patch
impl Sync for Patch
impl Unpin for Patch
impl UnwindSafe for Patch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more