pub struct Containment {
pub boundary: Vec<Vec<Point2>>,
pub mode: ContainmentMode,
pub offset: f64,
pub slope_deg: Option<[f64; 2]>,
pub z_range: Option<[f64; 2]>,
}Expand description
Region limits for 3D strategies.
Fields§
§boundary: Vec<Vec<Point2>>Closed 2D boundary loops in machine XY (empty: the target silhouette).
mode: ContainmentMode§offset: f64Extra offset applied to the boundary (positive grows it).
slope_deg: Option<[f64; 2]>Only machine surface slopes within this range, degrees from horizontal.
z_range: Option<[f64; 2]>Only machine between these machine Z levels.
Implementations§
Trait Implementations§
Source§impl Clone for Containment
impl Clone for Containment
Source§impl Debug for Containment
impl Debug for Containment
Source§impl Default for Containment
impl Default for Containment
Source§impl<'de> Deserialize<'de> for Containmentwhere
Containment: Default,
impl<'de> Deserialize<'de> for Containmentwhere
Containment: Default,
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 Containment
impl PartialEq for Containment
Source§impl Serialize for Containment
impl Serialize for Containment
impl StructuralPartialEq for Containment
Auto Trait Implementations§
impl Freeze for Containment
impl RefUnwindSafe for Containment
impl Send for Containment
impl Sync for Containment
impl Unpin for Containment
impl UnsafeUnpin for Containment
impl UnwindSafe for Containment
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