Trait meshx::io::MeshExtractor
source · pub trait MeshExtractor<T: Real> {
// Provided methods
fn extract_mesh(&self) -> Result<Mesh<T>, Error> { ... }
fn extract_polymesh(&self) -> Result<PolyMesh<T>, Error> { ... }
fn extract_tetmesh(&self) -> Result<TetMesh<T>, Error> { ... }
fn extract_pointcloud(&self) -> Result<PointCloud<T>, Error> { ... }
}
Expand description
A trait for specific scene, object or mesh models to extract mesh data from.
All methods are optional and default implementations simply return an UnsupportedDataFormat
error.
This trait defines an API for converting file specific object models to meshx
mesh formats.
Provided Methods§
sourcefn extract_mesh(&self) -> Result<Mesh<T>, Error>
fn extract_mesh(&self) -> Result<Mesh<T>, Error>
Constructs an unstructured Mesh from this VTK model.
This function may clone the given model as necessary.
sourcefn extract_polymesh(&self) -> Result<PolyMesh<T>, Error>
fn extract_polymesh(&self) -> Result<PolyMesh<T>, Error>
Constructs a PolyMesh from this VTK model.
This function may clone the given model as necessary.
sourcefn extract_tetmesh(&self) -> Result<TetMesh<T>, Error>
fn extract_tetmesh(&self) -> Result<TetMesh<T>, Error>
Constructs a TetMesh from this VTK model.
This function may clone the given model as necessary.
sourcefn extract_pointcloud(&self) -> Result<PointCloud<T>, Error>
fn extract_pointcloud(&self) -> Result<PointCloud<T>, Error>
Constructs a PointCloud from this VTK model.
This function may clone the given model as necessary.