pub enum Piece {
Line(Vec<f64>),
Arc {
to: Vec<f64>,
centre: Vec<f64>,
clockwise: bool,
plane: Option<[f64; 3]>,
},
Spline(Vec<f64>),
}Variants§
Line(Vec<f64>)
Straight to this point.
Arc
On a circle around centre to the point to. plane is the normal of the circle’s plane where the program
states it (G17, G18, G19, or the three points of a MoveC): on three axes or more it tells the plane of a half turn,
which start, end and centre on one line leave open. None: the first of the x-y, x-z and y-z planes that holds the
start’s radius (see arc3).
Spline(Vec<f64>)
On a smooth curve through this point; consecutive ones form one curve.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Piece
impl<'de> Deserialize<'de> for Piece
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
impl StructuralPartialEq for Piece
Auto Trait Implementations§
impl Freeze for Piece
impl RefUnwindSafe for Piece
impl Send for Piece
impl Sync for Piece
impl Unpin for Piece
impl UnsafeUnpin for Piece
impl UnwindSafe for Piece
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