pub struct Scene {
pub triangles: Vec<Triangle>,
pub materials: Vec<Material>,
pub bounds: BoundingBox,
}Expand description
A complete 3D scene with all the data required for voxelization.
Fields§
§triangles: Vec<Triangle>All triangles contained within all instances of models of the scene.
The scene does not distinguish models. If you have a model with multiple instances, you should just expand them all into different triangles.
materials: Vec<Material>All materials contained within the scene
bounds: BoundingBoxThe bounding box of all triangles within the scene.
During voxelization, the voxels (which should all be positioned
within the bounding box of the scene) will be translated so
that instead of starting at min and ending at
max, they will start at 0, 0, 0 and end at
size instead.
Auto Trait Implementations§
impl Freeze for Scene
impl RefUnwindSafe for Scene
impl Send for Scene
impl Sync for Scene
impl Unpin for Scene
impl UnsafeUnpin for Scene
impl UnwindSafe for Scene
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