#[non_exhaustive]pub enum CurveRelation {
Composite {
segments: Vec<CurveSegment>,
},
Trimmed {
basis: NodeId,
start: Vec<TrimSelector>,
end: Vec<TrimSelector>,
sense_agreement: bool,
preference: TrimmingPreference,
},
Offset {
basis: NodeId,
distance: f64,
reference_direction: Option<DVec3>,
},
SurfaceCurve {
curve_3d: NodeId,
sides: SurfaceSides,
master: MasterRepresentation,
},
ParameterCurve {
basis_surface: NodeId,
reference_curve: NodeId,
},
}Expand description
Relationship between curve nodes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Composite
Ordered composite curve.
Fields
§
segments: Vec<CurveSegment>Trimmed
Trimmed view of a basis curve.
Offset
Constant-distance offset.
SurfaceCurve
Three-dimensional curve associated with one or more surfaces/pcurves.
Fields
§
sides: SurfaceSidesThe parametric sides, each pairing a surface with its own p-curve.
§
master: MasterRepresentationParameterCurve
Two-dimensional parameter curve on a surface.
Trait Implementations§
Source§impl Clone for CurveRelation
impl Clone for CurveRelation
Source§fn clone(&self) -> CurveRelation
fn clone(&self) -> CurveRelation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CurveRelation
impl Debug for CurveRelation
Source§impl From<CurveRelation> for GeometryNode
impl From<CurveRelation> for GeometryNode
Source§fn from(value: CurveRelation) -> GeometryNode
fn from(value: CurveRelation) -> GeometryNode
Converts to this type from the input type.
Source§impl PartialEq for CurveRelation
impl PartialEq for CurveRelation
impl BuiltInNode for CurveRelation
impl StructuralPartialEq for CurveRelation
Auto Trait Implementations§
impl Freeze for CurveRelation
impl RefUnwindSafe for CurveRelation
impl Send for CurveRelation
impl Sync for CurveRelation
impl Unpin for CurveRelation
impl UnwindSafe for CurveRelation
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