MeshSolid
The MeshSolid namespace provides algorithms for converting surface meshes into volumetric tetrahedral meshes using an advancing front generation method.
#include <geometry/TellusimMeshSolid.h>
Functions
Generates a solid (tetrahedral) mesh from a surface Mesh using an advancing front algorithm.
bool create(Mesh &dest, const Mesh &src, float32_t ratio = 1.0f, float32_t threshold = 0.9f, const ProgressCallback *func = nullptr)
bool create(MeshGeometry &dest, const MeshGeometry &src, float32_t ratio = 1.0f, float32_t threshold = 0.9f, const ProgressCallback *func = nullptr, uint32_t position = Maxu32)
Type | Name | Description |
---|---|---|
float32_t | ratio | Tetrahedron height ratio |
float32_t | threshold | Delaunay radius threshold |
uint32_t | position | Position attribute index |
Types
using ProgressCallback = Function<bool(uint32_t progress)>