pub enum PrimitiveSolid {
Box {
length: Length,
width: Length,
height: Length,
},
Cylinder {
radius: Length,
height: Length,
angle: Angle,
},
Cone {
radius1: Length,
radius2: Length,
height: Length,
angle: Angle,
},
Sphere {
radius: Length,
latitude1: Angle,
latitude2: Angle,
longitude: Angle,
},
Ellipsoid {
x_radius: Length,
y_radius: Length,
z_radius: Length,
latitude1: Angle,
latitude2: Angle,
longitude: Angle,
},
Torus {
major_radius: Length,
minor_radius: Length,
latitude1: Angle,
latitude2: Angle,
longitude: Angle,
},
Prism {
sides: u32,
circumradius: Length,
height: Length,
},
Wedge {
xmin: Length,
ymin: Length,
zmin: Length,
x2min: Length,
z2min: Length,
xmax: Length,
ymax: Length,
zmax: Length,
x2max: Length,
z2max: Length,
},
}Expand description
Canonical dimensions of an analytic solid primitive.
Variants§
Box
Rectangular solid aligned to its feature frame.
Fields
Cylinder
Circular cylinder aligned to its feature-frame z-axis.
Fields
Cone
Circular cone or frustum aligned to its feature-frame z-axis.
Fields
Sphere
Spherical segment.
Fields
Ellipsoid
Ellipsoidal segment aligned to its feature frame.
Fields
Torus
Toroidal segment aligned to its feature frame.
Fields
Prism
Regular polygonal prism aligned to its feature frame.
Fields
Wedge
General wedge defined by two x-z profiles across a y interval.
Fields
Trait Implementations§
Source§impl Clone for PrimitiveSolid
impl Clone for PrimitiveSolid
Source§fn clone(&self) -> PrimitiveSolid
fn clone(&self) -> PrimitiveSolid
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrimitiveSolid
impl Debug for PrimitiveSolid
Source§impl<'de> Deserialize<'de> for PrimitiveSolid
impl<'de> Deserialize<'de> for PrimitiveSolid
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 JsonSchema for PrimitiveSolid
impl JsonSchema for PrimitiveSolid
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PrimitiveSolid
impl PartialEq for PrimitiveSolid
Source§impl Serialize for PrimitiveSolid
impl Serialize for PrimitiveSolid
impl StructuralPartialEq for PrimitiveSolid
Auto Trait Implementations§
impl Freeze for PrimitiveSolid
impl RefUnwindSafe for PrimitiveSolid
impl Send for PrimitiveSolid
impl Sync for PrimitiveSolid
impl Unpin for PrimitiveSolid
impl UnsafeUnpin for PrimitiveSolid
impl UnwindSafe for PrimitiveSolid
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