struct MAGES::MeshDeformations::Editor::PerSubMeshOptions

Overview

Per sub-mesh generation options for a SimulationMesh. More…

struct PerSubMeshOptions
{
    // fields

    bool Tearable;
    float ParticleDamping;
    float DistanceConstraintsInverseStiffness;
    float DistanceConstraintTearForce;
    float VolumeConstraintsInverseStiffness;
    float CollinearConstraintsInverseStiffness;
    float ShapeMatchingConstraintsStiffness;
    float CutForceThreshold;
    float StaticFriction;
    float KineticFriction;

    // properties

    PerSubMeshOptions Default;
};

Detailed Documentation

Per sub-mesh generation options for a SimulationMesh.

Stiffness for distance and volume constraints is stored as inverse stiffness on the material (1 / max(stiffness, epsilon)), matching the behavior of the former converter window.

Fields

bool Tearable

Whether the sub-mesh particles/constraints are tearable.

float ParticleDamping

Particle damping. Range [0, 1].

float DistanceConstraintsInverseStiffness

Distance constraint inverse stiffness (1 / stiffness).

float DistanceConstraintTearForce

Distance constraint tear force. A distance constraint tears when the force exerted on it exceeds this value.

float VolumeConstraintsInverseStiffness

Volume constraint inverse stiffness (1 / stiffness).

float CollinearConstraintsInverseStiffness

Collinear constraint inverse stiffness (1 / stiffness).

float ShapeMatchingConstraintsStiffness

Shape matching constraint stiffness. Range [0, 1].

float CutForceThreshold

The force exerted on a particle in order to break. A particle can break if force from a cut-flagged particle exceeds this value.

float StaticFriction

Static friction.

float KineticFriction

Kinetic friction.

Properties

PerSubMeshOptions Default

Gets the default options, matching the converter window defaults.