Simplifies the mesh. The ratio
parameter specifies the amount of vertices to keep this is a value between 0.0 (remove everything) and 1.0 (no change).
Optional:
aggressive
: Simplify the mesh disregarding quality.
vertex_attributes
: Take vertex attributes into account when simplifying the mesh.
lock_border
: Lock border vertices during simplification to avoid gaps on connected meshes.