pub enum CurveInput {
Line,
Circle(Frame, f64),
Ellipse(Frame, f64, f64),
Polyline(Vec<[f64; 3]>),
Nurbs(NurbsCurve),
}Expand description
Curve input for StepBuilder::edge. NurbsCurve mirrors the
read-side to_nurbs() type; see SurfaceInput for the
rational/non-rational split.
Variants§
Line
Straight segment — computed from the two vertex positions.
Circle(Frame, f64)
Circle in the frame’s XY plane with the given radius; with equal end vertices this is a full circle, otherwise an arc.
Ellipse(Frame, f64, f64)
Ellipse in the frame’s XY plane: first and second semi-axis; with equal end vertices a full ellipse, otherwise an arc.
Polyline(Vec<[f64; 3]>)
Piecewise-linear curve through the given points (customarily the first/last coincide with the edge’s vertices).
Nurbs(NurbsCurve)
Trait Implementations§
Source§impl Clone for CurveInput
impl Clone for CurveInput
Source§fn clone(&self) -> CurveInput
fn clone(&self) -> CurveInput
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 moreAuto Trait Implementations§
impl Freeze for CurveInput
impl RefUnwindSafe for CurveInput
impl Send for CurveInput
impl Sync for CurveInput
impl Unpin for CurveInput
impl UnsafeUnpin for CurveInput
impl UnwindSafe for CurveInput
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