pub struct CutSource {
pub a: u32,
pub b: u32,
pub t: f64,
}Expand description
A point of a cut, as a place on an edge of the surface: node a + t·(node b − node a), the nodes numbered as the representation numbers them - the
running count of its patches’ nodes, holes included, which is what a
per-node colour buffer of the representation indexes (colour_buffer). The
reader drops non-finite nodes before it cuts; read::surfaces translates
its indices back (Prepared::nodes), cross-audited on a real model by a
downstream test. An end clipped to the trace’s window
lies inside a triangle, not on an edge: it takes the nearer crossing’s
edge, a fraction of a triangle at the two ends of a span.
Fields§
§a: u32The first node of the edge.
b: u32The second node of the edge.
t: f64Where on the edge, from a (0) to b (1).
Trait Implementations§
impl Copy for CutSource
Source§impl<'de> Deserialize<'de> for CutSource
impl<'de> Deserialize<'de> for CutSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CutSource
Auto Trait Implementations§
impl Freeze for CutSource
impl RefUnwindSafe for CutSource
impl Send for CutSource
impl Sync for CutSource
impl Unpin for CutSource
impl UnsafeUnpin for CutSource
impl UnwindSafe for CutSource
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