pub enum CurveKind3d {
Line {
start: PointId,
end: PointId,
},
Arc {
start: PointId,
through: PointId,
end: PointId,
},
Spline {
points: Vec<PointId>,
},
Helix {
start: PointId,
base: PointId,
top: PointId,
end: PointId,
turns: Scalar,
left: bool,
},
Reference,
}Expand description
What a curve of a 3-D sketch is.
Variants§
Line
Arc
The circular arc from start through through to end.
Spline
The cubic spline through points, in order.
Helix
The helix round the axis from base to top from start, as far
up the axis as top is from base, in turns turns: right-handed,
or left-handed if left. Its radius is how far start is from the
axis. Where it arrives, end, follows from the rest, by a
Constraint3d::HelixEnd (Sketch3d::add_helix adds it).
Reference
A curve given from outside — an edge of the part — whose geometry is
in Sketch3d::references: only for points to be constrained onto.
Trait Implementations§
Source§impl Clone for CurveKind3d
impl Clone for CurveKind3d
Source§fn clone(&self) -> CurveKind3d
fn clone(&self) -> CurveKind3d
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 moreSource§impl Debug for CurveKind3d
impl Debug for CurveKind3d
Source§impl<'de> Deserialize<'de> for CurveKind3d
impl<'de> Deserialize<'de> for CurveKind3d
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CurveKind3d
impl PartialEq for CurveKind3d
Source§impl Serialize for CurveKind3d
impl Serialize for CurveKind3d
impl StructuralPartialEq for CurveKind3d
Auto Trait Implementations§
impl Freeze for CurveKind3d
impl RefUnwindSafe for CurveKind3d
impl Send for CurveKind3d
impl Sync for CurveKind3d
impl Unpin for CurveKind3d
impl UnsafeUnpin for CurveKind3d
impl UnwindSafe for CurveKind3d
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