diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-31 16:03:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-31 16:03:36 +0400 |
commit | 78a4e2461419f026d53e409cb75073ba5f47e1bb (patch) | |
tree | 2847f536bee9b51a0d30f59baf6becc22a8acffd /source/blender/makesdna/DNA_modifier_types.h | |
parent | 81f5c9ed9b8193864f1c6160aed9eef9338f0d27 (diff) | |
parent | bac6757ea0b1c873b8dd8221592ea95eed8d5bac (diff) |
svn merge ^/trunk/blender -r43009:43033
Diffstat (limited to 'source/blender/makesdna/DNA_modifier_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_modifier_types.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h index 093ab2f6dc1..dd68694404d 100644 --- a/source/blender/makesdna/DNA_modifier_types.h +++ b/source/blender/makesdna/DNA_modifier_types.h @@ -76,6 +76,7 @@ typedef enum ModifierType { eModifierType_WeightVGProximity, eModifierType_Ocean, eModifierType_DynamicPaint, + eModifierType_Remesh, /* BMESH ONLY - keeps getting bumped by new modifiers in trunk */ eModifierType_NgonInterp, @@ -1041,4 +1042,39 @@ typedef struct DynamicPaintModifierData { int pad; } DynamicPaintModifierData; +/* Remesh modifier */ + +typedef enum RemeshModifierFlags { + MOD_REMESH_FLOOD_FILL = 1, +} RemeshModifierFlags; + +typedef enum RemeshModifierMode { + /* blocky */ + MOD_REMESH_CENTROID = 0, + /* smooth */ + MOD_REMESH_MASS_POINT = 1, + /* keeps sharp edges */ + MOD_REMESH_SHARP_FEATURES = 2, +} RemeshModifierMode; + +typedef struct RemeshModifierData { + ModifierData modifier; + + /* floodfill option, controls how small components can be + before they are removed */ + float threshold; + + /* ratio between size of model and grid */ + float scale; + + float hermite_num; + + /* octree depth */ + char depth; + + char flag; + char mode; + char pad; +} RemeshModifierData; + #endif |