pub enum ConstructionShape {
Point([f64; 3]),
Axis {
origin: [f64; 3],
z: [f64; 3],
x: [f64; 3],
},
Polyline {
points: Vec<[f64; 3]>,
closed: bool,
},
Circle {
centre: [f64; 3],
normal: [f64; 3],
radius: f64,
},
Plane {
origin: [f64; 3],
normal: [f64; 3],
x_axis: [f64; 3],
u: [f64; 2],
v: [f64; 2],
},
}Expand description
Reference geometry with no topology: what STEP and IGES files carry as construction geometry beside (or instead of) a part’s solid.
Variants§
Point([f64; 3])
Axis
An axis placement: z its axis, x its reference direction.
Polyline
Straight pieces through the points; closed back to the first.
Circle
Plane
A plane over u along x_axis and v along normal × x_axis
from origin.
Trait Implementations§
Source§impl Clone for ConstructionShape
impl Clone for ConstructionShape
Source§impl Debug for ConstructionShape
impl Debug for ConstructionShape
Source§impl<'de> Deserialize<'de> for ConstructionShape
impl<'de> Deserialize<'de> for ConstructionShape
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 ConstructionShape
impl PartialEq for ConstructionShape
Source§impl Serialize for ConstructionShape
impl Serialize for ConstructionShape
impl StructuralPartialEq for ConstructionShape
Auto Trait Implementations§
impl Forget for ConstructionShape
impl Freeze for ConstructionShape
impl RefUnwindSafe for ConstructionShape
impl Send for ConstructionShape
impl Sync for ConstructionShape
impl Unpin for ConstructionShape
impl UnsafeUnpin for ConstructionShape
impl UnwindSafe for ConstructionShape
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