pub struct Mesh {
pub vertices: Vec<Vertex>,
pub colours: Vec<Colour>,
pub normals: Vec<Vector3>,
pub indices: Vec<u32>,
}
Fields§
§vertices: Vec<Vertex>
§colours: Vec<Colour>
§normals: Vec<Vector3>
§indices: Vec<u32>
Implementations§
Source§impl Mesh
impl Mesh
pub fn voxelize_pointcloud( &self, voxel_size: Vector3, precision: f32, ) -> PointCloud
pub fn voxelize(&self, voxel_size: Vector3, precision: f32) -> Mesh
pub fn voxelize_texture(&self, width: u32, height: u32, depth: u32) -> Vec<u32>
pub fn new( vertices: Vec<Vertex>, colours: Vec<Colour>, normals: Vec<Vector3>, indices: Vec<u32>, ) -> Mesh
Auto Trait Implementations§
impl Freeze for Mesh
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnwindSafe for Mesh
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