#[non_exhaustive]pub enum AnalyticPrimitive {
Block {
x: f64,
y: f64,
z: f64,
},
Sphere {
radius: f64,
},
Cylinder {
radius: f64,
height: f64,
},
Cone {
radius: f64,
height: f64,
},
Pyramid {
x: f64,
y: f64,
height: f64,
},
}Expand description
Exact primitive solid; tessellation is a separate operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Block
Axis-aligned box in local coordinates.
Sphere
Sphere centered at the local origin.
Cylinder
Cylinder along local +z.
Cone
Cone along local +z.
Pyramid
Rectangular pyramid along local +z.
Trait Implementations§
impl BuiltInNode for Primitive
impl Copy for Primitive
Source§impl From<Primitive> for GeometryNode
impl From<Primitive> for GeometryNode
Source§fn from(value: Primitive) -> GeometryNode
fn from(value: Primitive) -> GeometryNode
Converts to this type from the input type.
impl StructuralPartialEq for Primitive
Auto Trait Implementations§
impl Freeze for Primitive
impl RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnsafeUnpin for Primitive
impl UnwindSafe for Primitive
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