Blender
V3.3
|
#include "DNA_defs.h"
Go to the source code of this file.
Classes | |
struct | ClothSimSettings |
struct | ClothCollSettings |
Typedefs | |
typedef struct ClothSimSettings | ClothSimSettings |
typedef struct ClothCollSettings | ClothCollSettings |
Enumerations | |
enum | CLOTH_SIMSETTINGS_FLAGS { CLOTH_SIMSETTINGS_FLAG_COLLOBJ = (1 << 2) , CLOTH_SIMSETTINGS_FLAG_GOAL = (1 << 3) , CLOTH_SIMSETTINGS_FLAG_TEARING = (1 << 4) , CLOTH_SIMSETTINGS_FLAG_PRESSURE = (1 << 5) , CLOTH_SIMSETTINGS_FLAG_PRESSURE_VOL = (1 << 6) , CLOTH_SIMSETTINGS_FLAG_INTERNAL_SPRINGS = (1 << 7) , CLOTH_SIMSETTINGS_FLAG_SCALING = (1 << 8) , CLOTH_SIMSETTINGS_FLAG_INTERNAL_SPRINGS_NORMAL = (1 << 9) , CLOTH_SIMSETTINGS_FLAG_RESIST_SPRING_COMPRESS = (1 << 13) , CLOTH_SIMSETTINGS_FLAG_SEW = (1 << 14) , CLOTH_SIMSETTINGS_FLAG_DYNAMIC_BASEMESH = (1 << 15) } |
enum | CLOTH_BENDING_MODEL { CLOTH_BENDING_LINEAR = 0 , CLOTH_BENDING_ANGULAR = 1 } |
enum | CLOTH_COLLISIONSETTINGS_FLAGS { CLOTH_COLLSETTINGS_FLAG_ENABLED = (1 << 1) , CLOTH_COLLSETTINGS_FLAG_SELF = (1 << 2) } |
typedef struct ClothCollSettings ClothCollSettings |
typedef struct ClothSimSettings ClothSimSettings |
This struct contains all the global data required to run a simulation. At the time of this writing, this structure contains data appropriate to run a simulation as described in Deformation Constraints in a Mass-Spring Model to Describe Rigid Cloth Behavior by Xavier Provot.
I've tried to keep similar, if not exact names for the variables as are presented in the paper. Where I've changed the concept slightly, as in stepsPerFrame
compared to the time step in the paper, I've used variables with different names to minimize confusion.
enum CLOTH_BENDING_MODEL |
Enumerator | |
---|---|
CLOTH_BENDING_LINEAR | |
CLOTH_BENDING_ANGULAR |
Definition at line 201 of file DNA_cloth_types.h.
Enumerator | |
---|---|
CLOTH_COLLSETTINGS_FLAG_ENABLED | |
CLOTH_COLLSETTINGS_FLAG_SELF |
Definition at line 242 of file DNA_cloth_types.h.
Enumerator | |
---|---|
CLOTH_SIMSETTINGS_FLAG_COLLOBJ | Object is only collision object, no cloth simulation is done. |
CLOTH_SIMSETTINGS_FLAG_GOAL | DEPRECATED, for versioning only. |
CLOTH_SIMSETTINGS_FLAG_TEARING | True if tearing is enabled. |
CLOTH_SIMSETTINGS_FLAG_PRESSURE | True if pressure sim is enabled. |
CLOTH_SIMSETTINGS_FLAG_PRESSURE_VOL | Use the user defined target volume. |
CLOTH_SIMSETTINGS_FLAG_INTERNAL_SPRINGS | True if internal spring generation is enabled. |
CLOTH_SIMSETTINGS_FLAG_SCALING | DEPRECATED, for versioning only. |
CLOTH_SIMSETTINGS_FLAG_INTERNAL_SPRINGS_NORMAL | Require internal springs to be created between points with opposite normals. |
CLOTH_SIMSETTINGS_FLAG_RESIST_SPRING_COMPRESS | Edit cache in edit-mode. Don't allow spring compression. |
CLOTH_SIMSETTINGS_FLAG_SEW | Pull ends of loose edges together. |
CLOTH_SIMSETTINGS_FLAG_DYNAMIC_BASEMESH | Make simulation respect deformations in the base object. |
Definition at line 173 of file DNA_cloth_types.h.