pub enum PatternKind {
Linear {
count: u32,
spacing: f64,
direction: Point3,
},
Circular {
count: u32,
angle_deg: f64,
axis: Point3,
origin: Point3,
},
Mirror {
origin: Point3,
normal: Point3,
},
WcsOffsets {
list: Vec<WorkOffset>,
},
}Expand description
Shape of a pattern.
Variants§
Linear
count instances (including the original) spacing apart along direction.
Circular
count instances (including the original) stepped by angle_deg about axis through origin.
Mirror
The original and its reflection in the plane through origin with normal.
WcsOffsets
The sources re-run at each work offset.
Fields
§
list: Vec<WorkOffset>Implementations§
Source§impl PatternKind
impl PatternKind
Trait Implementations§
Source§impl Clone for PatternKind
impl Clone for PatternKind
Source§impl Debug for PatternKind
impl Debug for PatternKind
Source§impl Default for PatternKind
impl Default for PatternKind
Source§impl<'de> Deserialize<'de> for PatternKind
impl<'de> Deserialize<'de> for PatternKind
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 PatternKind
impl PartialEq for PatternKind
Source§impl Serialize for PatternKind
impl Serialize for PatternKind
impl StructuralPartialEq for PatternKind
Auto Trait Implementations§
impl Freeze for PatternKind
impl RefUnwindSafe for PatternKind
impl Send for PatternKind
impl Sync for PatternKind
impl Unpin for PatternKind
impl UnsafeUnpin for PatternKind
impl UnwindSafe for PatternKind
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