pub struct Piece {
pub mesh: u8,
pub tri: usize,
pub vi: [u32; 3],
}Expand description
One output fragment: a sub-triangle of an arranged input triangle, or an
untouched whole triangle. v is wound to match the input mesh’s outward
orientation; vi are the interned ids of the same three vertices.
Fields§
§mesh: u80 = first operand (P), 1 = second operand (Q).
tri: usizeIndex of the originating triangle in its soup.
vi: [u32; 3]Interned vertex ids (indices into IntersectionGraph::verts), wound
to the input mesh’s outward orientation. Pieces carry no coordinates
of their own — the shared tables keep untouched triangles free of
rational clones entirely.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Piece
impl RefUnwindSafe for Piece
impl Send for Piece
impl Sync for Piece
impl Unpin for Piece
impl UnsafeUnpin for Piece
impl UnwindSafe for Piece
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