Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(566)

Unified Diff: source/blender/makesdna/DNA_modifier_types.h

Issue 5491053: Remesh modifier (dual contouring) (Closed) Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Updated with build fixes from Sergey Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/blender/blenkernel/BKE_mesh.h ('k') | source/blender/makesrna/intern/rna_modifier.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/blender/makesdna/DNA_modifier_types.h
===================================================================
--- source/blender/makesdna/DNA_modifier_types.h (revision 42734)
+++ source/blender/makesdna/DNA_modifier_types.h (working copy)
@@ -76,6 +76,7 @@
eModifierType_WeightVGProximity,
eModifierType_Ocean,
eModifierType_DynamicPaint,
+ eModifierType_Remesh,
NUM_MODIFIER_TYPES
} ModifierType;
@@ -1032,4 +1033,39 @@
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
« no previous file with comments | « source/blender/blenkernel/BKE_mesh.h ('k') | source/blender/makesrna/intern/rna_modifier.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b