pub enum ProfileJoint {
Point(PointId),
Split {
curve: CurveId,
index: usize,
},
}Expand description
Where a joint of a profile comes from in the sketch: a sketch point, or a
point a sketch curve had to be split at to become NURBS pieces (see
ProfileLoop::to_nurbs) — Split { curve, index } is where piece
index of curve starts, counted in the curve’s own direction. A circle
has no points of its own, so all of its joints are splits, index = 0
included.
This is design data, stable across edits of the sketch that keep the curve — what a topological name of anything built from the joint is made from.
Variants§
Trait Implementations§
Source§impl Clone for ProfileJoint
impl Clone for ProfileJoint
Source§fn clone(&self) -> ProfileJoint
fn clone(&self) -> ProfileJoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProfileJoint
Source§impl Debug for ProfileJoint
impl Debug for ProfileJoint
Source§impl Display for ProfileJoint
p3 for a sketch point, c5@1 for where piece 1 of curve 5 starts.
impl Display for ProfileJoint
p3 for a sketch point, c5@1 for where piece 1 of curve 5 starts.
impl Eq for ProfileJoint
Source§impl Hash for ProfileJoint
impl Hash for ProfileJoint
Source§impl Ord for ProfileJoint
impl Ord for ProfileJoint
Source§fn cmp(&self, other: &ProfileJoint) -> Ordering
fn cmp(&self, other: &ProfileJoint) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProfileJoint
impl PartialEq for ProfileJoint
Source§fn eq(&self, other: &ProfileJoint) -> bool
fn eq(&self, other: &ProfileJoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ProfileJoint
impl PartialOrd for ProfileJoint
impl StructuralPartialEq for ProfileJoint
Auto Trait Implementations§
impl Freeze for ProfileJoint
impl RefUnwindSafe for ProfileJoint
impl Send for ProfileJoint
impl Sync for ProfileJoint
impl Unpin for ProfileJoint
impl UnsafeUnpin for ProfileJoint
impl UnwindSafe for ProfileJoint
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