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,
Source§impl<'de, G> Deserialize<'de> for EdgeUse<G>where
G: Deserialize<'de>,
impl<'de, G> Deserialize<'de> for EdgeUse<G>where
G: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EdgeUse<G>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EdgeUse<G>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<G> Eq for EdgeUse<G>where
G: Eq,
Source§impl<G> Serialize for EdgeUse<G>where
G: Serialize,
impl<G> Serialize for EdgeUse<G>where
G: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<G> StructuralPartialEq for EdgeUse<G>where
G: PartialEq,
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> UnsafeUnpin for EdgeUse<G>where
G: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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