pub enum SceneNode4 {
Leaf(Shape),
Union(Box<SceneNode4>, Box<SceneNode4>),
Intersection(Box<SceneNode4>, Box<SceneNode4>),
Difference(Box<SceneNode4>, Box<SceneNode4>),
}Variants§
Leaf(Shape)
Union(Box<SceneNode4>, Box<SceneNode4>)
Intersection(Box<SceneNode4>, Box<SceneNode4>)
Difference(Box<SceneNode4>, Box<SceneNode4>)
Implementations§
Source§impl SceneNode4
impl SceneNode4
pub fn hypersphere(center: Vec4, radius: f32) -> Self
pub fn halfspace(normal: Vec4, offset: f32) -> Self
Sourcepub fn polytope(vertices: Vec<Vec4>) -> Self
pub fn polytope(vertices: Vec<Vec4>) -> Self
The static Primitive4 emit returns a sentinel; polytope leaves are invisible.
pub fn union(self, other: SceneNode4) -> Self
pub fn intersect(self, other: SceneNode4) -> Self
pub fn subtract(self, other: SceneNode4) -> Self
Trait Implementations§
Source§impl Clone for SceneNode4
impl Clone for SceneNode4
Source§fn clone(&self) -> SceneNode4
fn clone(&self) -> SceneNode4
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SceneNode4
impl RefUnwindSafe for SceneNode4
impl Send for SceneNode4
impl Sync for SceneNode4
impl Unpin for SceneNode4
impl UnsafeUnpin for SceneNode4
impl UnwindSafe for SceneNode4
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