diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-03-31 18:06:17 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-03-31 19:27:37 +0300 |
commit | 6c036a65c9741786deb53191fa77d83e7ffb1be3 (patch) | |
tree | 3f9ab727fb309727991a48598c965528c2ae3b20 /source/blender/makesdna | |
parent | 38685b5a3976954634b441858cf9c5df65bbe83f (diff) |
Add Voxel Mode to the Remesh modifier
This adds the Voxel Mode to the current remesh modifier. It works
exactly the same way as the voxel remesh operator and uses the same
properties to control the remeshing. We can exand this with more options
in the future (fix poles, reprojection...)
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D7292
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_modifier_types.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h index 74cb72a1fae..855bf8434be 100644 --- a/source/blender/makesdna/DNA_modifier_types.h +++ b/source/blender/makesdna/DNA_modifier_types.h @@ -1608,6 +1608,8 @@ typedef enum eRemeshModifierMode { MOD_REMESH_MASS_POINT = 1, /* keeps sharp edges */ MOD_REMESH_SHARP_FEATURES = 2, + /* Voxel remesh */ + MOD_REMESH_VOXEL = 3, } eRemeshModifierMode; typedef struct RemeshModifierData { @@ -1623,10 +1625,13 @@ typedef struct RemeshModifierData { /* octree depth */ char depth; - char flag; char mode; char _pad; + + /* OpenVDB Voxel remesh properties. */ + float voxel_size; + float adaptivity; } RemeshModifierData; /* Skin modifier */ |