pub struct EdgeUse<G> {
pub edge: EdgeId,
pub orientation: Orientation,
pub pcurve: Option<G>,
}Expand description
One oriented use of an edge in a loop.
The pcurve is the edge’s image in the parameter space of the face this
use belongs to. A 3D edge curve says where a boundary sits in model
space; it does not say where that boundary lies in a surface’s (u, v)
domain, and inverting a surface to recover it is not generally solvable
in closed form. Trimming a curved face therefore needs it stated, which
is what exchange formats carry alongside the 3D edge curve.
It belongs to the USE rather than the edge: one edge bounds two faces with different support surfaces, so it has a different parameter image in each.
Fields§
§edge: EdgeIdReferenced edge.
orientation: OrientationTraversal direction.
pcurve: Option<G>Optional 2D curve handle in the owning face’s surface parameters.
Trait Implementations§
impl<G: Copy> Copy for EdgeUse<G>
impl<G: Eq> Eq for EdgeUse<G>
impl<G> StructuralPartialEq for EdgeUse<G>
Auto Trait Implementations§
impl<G> Freeze for EdgeUse<G>where
G: Freeze,
impl<G> RefUnwindSafe for EdgeUse<G>where
G: RefUnwindSafe,
impl<G> Send for EdgeUse<G>where
G: Send,
impl<G> Sync for EdgeUse<G>where
G: Sync,
impl<G> Unpin for EdgeUse<G>where
G: Unpin,
impl<G> UnwindSafe for EdgeUse<G>where
G: UnwindSafe,
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