pub struct Mesh { /* private fields */ }Implementations§
Source§impl Mesh
impl Mesh
pub fn new_box( extent: [f32; 3], segments: [u32; 3], inward_normals: bool, geometry_type: GeometryType, ) -> Result<Self>
pub fn new_ellipsoid( extent: [f32; 3], segments: [u32; 2], inward_normals: bool, hemisphere: bool, geometry_type: GeometryType, ) -> Result<Self>
pub fn new_sphere( radius: f32, segments: [u32; 2], inward_normals: bool, geometry_type: GeometryType, ) -> Result<Self>
pub fn new_cylinder( extent: [f32; 3], segments: [u32; 2], inward_normals: bool, top_cap: bool, bottom_cap: bool, geometry_type: GeometryType, ) -> Result<Self>
pub fn new_plane( extent: [f32; 3], segments: [u32; 2], geometry_type: GeometryType, ) -> Result<Self>
pub fn new_icosahedron( extent: [f32; 3], inward_normals: bool, geometry_type: GeometryType, ) -> Result<Self>
pub fn vertex_count(&self) -> usize
pub fn vertex_buffer_count(&self) -> usize
pub fn vertex_buffer(&self, index: usize) -> Option<MeshBuffer>
pub fn vertex_buffers(&self) -> Vec<MeshBuffer>
pub fn submesh_count(&self) -> usize
pub fn submesh(&self, index: usize) -> Option<Submesh>
pub fn submeshes(&self) -> Vec<Submesh>
pub fn bounding_box(&self) -> BoundingBox
pub fn vertex_descriptor(&self) -> Option<VertexDescriptor>
pub fn vertex_attribute_data_named( &self, attribute_name: &str, ) -> Result<Option<VertexAttributeData>>
pub fn as_object(&self) -> Object
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mesh
impl RefUnwindSafe for Mesh
impl !Send for Mesh
impl !Sync for Mesh
impl Unpin for Mesh
impl UnsafeUnpin 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