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 for EdgeUse<G>where
G: Copy,
impl<G> Eq for EdgeUse<G>where
G: Eq,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more