Skip to main content

MeshSimplifier

Trait MeshSimplifier 

Source
pub trait MeshSimplifier {
    // Required method
    fn simplify(
        &self,
        mesh: &TriangleMesh,
        reduction_ratio: f32,
    ) -> Result<TriangleMesh>;
}
Expand description

Simplify a mesh by reducing the number of faces/vertices

Required Methods§

Source

fn simplify( &self, mesh: &TriangleMesh, reduction_ratio: f32, ) -> Result<TriangleMesh>

Simplify mesh with target reduction ratio (0.0 = no reduction, 1.0 = maximum reduction)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§