pub struct FacePatch {
pub points: Vec<Point3>,
pub sources: Vec<Option<NodeKey>>,
pub triangles: Vec<[u32; 3]>,
}Expand description
A face’s corners plus the curve nodes lying on it, ready to triangulate.
Fields§
§points: Vec<Point3>Every point, in the order the triangulation indexes them.
Corners come first so the original winding stays recoverable.
sources: Vec<Option<NodeKey>>Which curve node each point came from, where it came from one.
None marks an original face corner. Retaining this lets a caller
weld patches from adjacent faces by NODE IDENTITY rather than by
comparing coordinates – the same discipline the curve itself uses.
triangles: Vec<[u32; 3]>Triangles as indices into points, wound like the source face.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FacePatch
impl RefUnwindSafe for FacePatch
impl Send for FacePatch
impl Sync for FacePatch
impl Unpin for FacePatch
impl UnsafeUnpin for FacePatch
impl UnwindSafe for FacePatch
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