Skip to main content

MeshRefine

The MeshRefine namespace provides algorithms for refining or subdividing 3D meshes. Subdivision increases the resolution of a mesh by splitting its faces, allowing for smoother geometry.

#include <geometry/TellusimMeshRefine.h>

Functions

Performs mesh subdivision.

bool subdiv(Mesh &dest, const Mesh &src, uint32_t steps)
bool subdiv(MeshGeometry &dest, const MeshGeometry &src, uint32_t steps, uint32_t position = Maxu32)
TypeNameDescription
uint32_tstepsNumber of subdivision steps. Each step increases the triangle count.