Note: This is a naive triangle decimation that preserves mesh topology
by operating on complete triangles rather than individual vertices.
For production use with complex meshes, consider using a proper
mesh simplification library (e.g., meshoptimizer, simplify-geometry).
Simplify geometry by sampling complete triangles.
Note: This is a naive triangle decimation that preserves mesh topology by operating on complete triangles rather than individual vertices. For production use with complex meshes, consider using a proper mesh simplification library (e.g., meshoptimizer, simplify-geometry).