Struct crystal_ball::shapes::Mesh
source · pub struct Mesh<S: Shape> {
pub bvh: BVH<S>,
pub bounds: Bounds3,
}
Expand description
A mesh consisting of multiple shapes stored in a BVH
.
Fields§
§bvh: BVH<S>
The mesh’s bounding volume hierarchy.
bounds: Bounds3
The mesh’s bounding box.
Implementations§
Trait Implementations§
source§impl<I: IntoIterator<Item = TriangleMesh>> From<I> for Mesh<Triangle>
impl<I: IntoIterator<Item = TriangleMesh>> From<I> for Mesh<Triangle>
source§impl<S: Shape + Transformable + Clone> Transformable for Mesh<S>
impl<S: Shape + Transformable + Clone> Transformable for Mesh<S>
source§fn look_at(self, _target: Point3, _view_up: Vec3) -> Self
fn look_at(self, _target: Point3, _view_up: Vec3) -> Self
This method is currently not implemented.
source§fn rotate_x(self, angle: f64) -> Self
fn rotate_x(self, angle: f64) -> Self
Rotate
self
around its center along the +X axis. Read moresource§fn rotate_y(self, angle: f64) -> Self
fn rotate_y(self, angle: f64) -> Self
Rotate
self
around its center along the +Y axis. Read moresource§fn rotate_z(self, angle: f64) -> Self
fn rotate_z(self, angle: f64) -> Self
Rotate
self
around its center along the +Z axis. Read moreAuto Trait Implementations§
impl<S> RefUnwindSafe for Mesh<S>where
S: RefUnwindSafe,
impl<S> Send for Mesh<S>
impl<S> Sync for Mesh<S>
impl<S> Unpin for Mesh<S>where
S: Unpin,
impl<S> UnwindSafe for Mesh<S>where
S: UnwindSafe,
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