pub struct Submesh { /* private fields */ }Expand description
Wraps the corresponding Model I/O submesh counterpart.
Implementations§
Source§impl Submesh
impl Submesh
Sourcepub fn name(&self) -> Option<String>
pub fn name(&self) -> Option<String>
Calls the corresponding Model I/O method on the wrapped Model I/O submesh counterpart.
Sourcepub fn set_name(&self, name: &str) -> Result<()>
pub fn set_name(&self, name: &str) -> Result<()>
Calls the corresponding Model I/O method on the wrapped Model I/O submesh counterpart.
Sourcepub fn index_count(&self) -> usize
pub fn index_count(&self) -> usize
Calls the corresponding Model I/O method on the wrapped Model I/O submesh counterpart.
Sourcepub fn index_type(&self) -> Option<IndexBitDepth>
pub fn index_type(&self) -> Option<IndexBitDepth>
Calls the corresponding Model I/O method on the wrapped Model I/O submesh counterpart.
Sourcepub fn geometry_type(&self) -> Option<GeometryType>
pub fn geometry_type(&self) -> Option<GeometryType>
Calls the corresponding Model I/O method on the wrapped Model I/O submesh counterpart.
Sourcepub fn index_buffer(&self) -> Option<MeshBuffer>
pub fn index_buffer(&self) -> Option<MeshBuffer>
Calls the corresponding Model I/O method on the wrapped Model I/O submesh counterpart.
Sourcepub fn index_buffer_as_type(
&self,
index_type: IndexBitDepth,
) -> Option<MeshBuffer>
pub fn index_buffer_as_type( &self, index_type: IndexBitDepth, ) -> Option<MeshBuffer>
Calls the corresponding Model I/O method on the wrapped Model I/O submesh counterpart.
Sourcepub fn material(&self) -> Option<Material>
pub fn material(&self) -> Option<Material>
Calls the corresponding Model I/O method on the wrapped Model I/O submesh counterpart.
Sourcepub fn topology(&self) -> Option<SubmeshTopology>
pub fn topology(&self) -> Option<SubmeshTopology>
Calls the corresponding Model I/O method on the wrapped Model I/O submesh counterpart.
Sourcepub fn set_topology(&self, topology: Option<&SubmeshTopology>)
pub fn set_topology(&self, topology: Option<&SubmeshTopology>)
Calls the corresponding Model I/O method on the wrapped Model I/O submesh counterpart.
Sourcepub fn set_material(&self, material: Option<&Material>)
pub fn set_material(&self, material: Option<&Material>)
Calls the corresponding Model I/O method on the wrapped Model I/O submesh counterpart.