pub struct CutStep {
pub contour_id: ContourId,
pub geometry_id: String,
pub instance: usize,
pub contour_type: ContourType,
pub pierce_point: (f64, f64),
pub cut_direction: CutDirection,
pub rapid_from: Option<(f64, f64)>,
pub rapid_distance: f64,
pub cut_distance: f64,
}Expand description
A single step in the cutting sequence.
Fields§
§contour_id: ContourIdID of the contour being cut.
geometry_id: StringID of the source geometry this contour belongs to.
instance: usizeInstance index of the placed geometry (0-based).
contour_type: ContourTypeWhether this is an exterior or interior contour.
pierce_point: (f64, f64)Piercing point (entry point on the contour).
cut_direction: CutDirectionCutting direction around the contour.
rapid_from: Option<(f64, f64)>Starting point of the rapid move to reach this contour. None for the first step (starts from home position).
rapid_distance: f64Distance of the rapid move to reach the pierce point.
cut_distance: f64Perimeter (cutting distance) of this contour.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CutStep
impl RefUnwindSafe for CutStep
impl Send for CutStep
impl Sync for CutStep
impl Unpin for CutStep
impl UnsafeUnpin for CutStep
impl UnwindSafe for CutStep
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.