struct MAGES::MeshDeformations::Editor::SimulationMeshGenerationOptions

Overview

Options describing how to generate a SimulationMesh from a TetrahedralMesh. More…

struct SimulationMeshGenerationOptions
{
    // fields

    float Mass;
    float ParticleMass;
    DistanceConstraintsGenerationOptions DistanceConstraintsMode;
    VolumeConstraintsGenerationOptions VolumeConstraintsMode;
    ShapeMatchingConstraintsGenerationOptions ShapeMatchingConstraintsMode;
    PerSubMeshOptions[] PerSubMeshOptions;
};

Detailed Documentation

Options describing how to generate a SimulationMesh from a TetrahedralMesh.

Fields

float Mass

Total object mass.

float ParticleMass

Per-particle mass. When greater than zero this is authoritative for Particle.InverseMass; otherwise it is derived from Mass divided by the vertex count.

DistanceConstraintsGenerationOptions DistanceConstraintsMode

Distance constraints generation mode.

VolumeConstraintsGenerationOptions VolumeConstraintsMode

Volume constraints generation mode.

ShapeMatchingConstraintsGenerationOptions ShapeMatchingConstraintsMode

Shape matching constraints generation mode.

PerSubMeshOptions[] PerSubMeshOptions

Per sub-mesh options. Must contain one entry per TetrahedralMesh.SubMeshCount.