interface MAGES::MeshDeformations::Editor::Tetrahedralization¶
Overview¶
interface Tetrahedralization
{
// properties
string Name;
bool SupportsWedgeCoords;
// methods
bool Run(Mesh mesh, string outputPath, Dictionary parameters);
Dictionary GetDefaultParameters();
bool TryBuildWedgeCoords(SimulationMesh mesh, out float2[] tetCornerUVs);
static T GetParameter< T >(
Dictionary parameters,
string name,
T defaultValue
);
};
// direct descendants
class SimpleTetrahedralization;
class NetgenTetrahedralization;
Detailed Documentation¶
Properties¶
bool SupportsWedgeCoords
Gets a value indicating whether this tetrahedralizer can emit a per-wedge UV (WedgeCoords) sidecar for the mesh it last produced. Defaults to false so existing implementations need no change.
Methods¶
bool TryBuildWedgeCoords(SimulationMesh mesh, out float2[] tetCornerUVs)
Attempts to build the per-wedge (per-face-corner) UV array — laid out vc*12 + faceSlot*3 + cornerInFace (see WedgeUvLayout) — for the imported SimulationMesh that corresponds to this tetrahedralizer’s most recent Run. The default implementation is a no-op that carries no UVs.
Parameters:
mesh |
The imported simulation mesh to build UVs for. |
tetCornerUVs |
On success, the per-face-corner UV array (length |
Returns:
true when a UV array was produced; otherwise false.