pub enum LeafPrim {
Cube {
size: DVec3,
},
Cylinder {
radius: f64,
height: f64,
segments: usize,
},
Cone {
radius: f64,
height: f64,
segments: usize,
},
Sphere {
radius: f64,
},
Aabb {
min: DVec3,
max: DVec3,
},
}Expand description
A supported primitive in its local frame.
Variants§
Cube
Corner-anchored box spanning [0, size].
Cylinder
Base at y = 0, axis +Y. segments is the render tessellation —
edge-feature masks match it so boolean chords coincide.
Cone
Base disk at y = 0, apex at y = height.
Sphere
Centered at the origin.
Aabb
Conservative stand-in for an unsupported subtree.
Trait Implementations§
impl Copy for LeafPrim
impl StructuralPartialEq for LeafPrim
Auto Trait Implementations§
impl Freeze for LeafPrim
impl RefUnwindSafe for LeafPrim
impl Send for LeafPrim
impl Sync for LeafPrim
impl Unpin for LeafPrim
impl UnsafeUnpin for LeafPrim
impl UnwindSafe for LeafPrim
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more