pub struct Mesh { /* private fields */ }Expand description
Wraps the corresponding Model I/O mesh counterpart.
Implementations§
Source§impl Mesh
impl Mesh
Sourcepub fn new_box(
extent: [f32; 3],
segments: [u32; 3],
inward_normals: bool,
geometry_type: GeometryType,
) -> Result<Self>
pub fn new_box( extent: [f32; 3], segments: [u32; 3], inward_normals: bool, geometry_type: GeometryType, ) -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh counterpart.
Sourcepub fn new_ellipsoid(
extent: [f32; 3],
segments: [u32; 2],
inward_normals: bool,
hemisphere: 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>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh counterpart.
Sourcepub fn new_sphere(
radius: f32,
segments: [u32; 2],
inward_normals: bool,
geometry_type: GeometryType,
) -> Result<Self>
pub fn new_sphere( radius: f32, segments: [u32; 2], inward_normals: bool, geometry_type: GeometryType, ) -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh counterpart.
Sourcepub 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_cylinder( extent: [f32; 3], segments: [u32; 2], inward_normals: bool, top_cap: bool, bottom_cap: bool, geometry_type: GeometryType, ) -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh counterpart.
Sourcepub fn new_plane(
extent: [f32; 3],
segments: [u32; 2],
geometry_type: GeometryType,
) -> Result<Self>
pub fn new_plane( extent: [f32; 3], segments: [u32; 2], geometry_type: GeometryType, ) -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh counterpart.
Sourcepub fn new_icosahedron(
extent: [f32; 3],
inward_normals: bool,
geometry_type: GeometryType,
) -> Result<Self>
pub fn new_icosahedron( extent: [f32; 3], inward_normals: bool, geometry_type: GeometryType, ) -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O mesh counterpart.
Sourcepub fn vertex_count(&self) -> usize
pub fn vertex_count(&self) -> usize
Calls the corresponding Model I/O method on the wrapped Model I/O mesh counterpart.
Sourcepub fn vertex_buffer_count(&self) -> usize
pub fn vertex_buffer_count(&self) -> usize
Calls the corresponding Model I/O method on the wrapped Model I/O mesh counterpart.
Sourcepub fn vertex_buffer(&self, index: usize) -> Option<MeshBuffer>
pub fn vertex_buffer(&self, index: usize) -> Option<MeshBuffer>
Calls the corresponding Model I/O method on the wrapped Model I/O mesh counterpart.
Sourcepub fn vertex_buffers(&self) -> Vec<MeshBuffer>
pub fn vertex_buffers(&self) -> Vec<MeshBuffer>
Calls the corresponding Model I/O method on the wrapped Model I/O mesh counterpart.
Sourcepub fn submesh_count(&self) -> usize
pub fn submesh_count(&self) -> usize
Calls the corresponding Model I/O method on the wrapped Model I/O mesh counterpart.
Sourcepub fn submesh(&self, index: usize) -> Option<Submesh>
pub fn submesh(&self, index: usize) -> Option<Submesh>
Calls the corresponding Model I/O method on the wrapped Model I/O mesh counterpart.
Sourcepub fn submeshes(&self) -> Vec<Submesh>
pub fn submeshes(&self) -> Vec<Submesh>
Calls the corresponding Model I/O method on the wrapped Model I/O mesh counterpart.
Sourcepub fn bounding_box(&self) -> BoundingBox
pub fn bounding_box(&self) -> BoundingBox
Calls the corresponding Model I/O method on the wrapped Model I/O mesh counterpart.
Sourcepub fn vertex_descriptor(&self) -> Option<VertexDescriptor>
pub fn vertex_descriptor(&self) -> Option<VertexDescriptor>
Calls the corresponding Model I/O method on the wrapped Model I/O mesh counterpart.
Sourcepub fn vertex_attribute_data_named(
&self,
attribute_name: &str,
) -> Result<Option<VertexAttributeData>>
pub fn vertex_attribute_data_named( &self, attribute_name: &str, ) -> Result<Option<VertexAttributeData>>
Calls the corresponding Model I/O method on the wrapped Model I/O mesh counterpart.