Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2021-08-24 07:06:10 +0300
committerJoseph Eagar <joeedh@gmail.com>2021-08-24 07:06:10 +0300
commitbde54e127eace4bc865044673beb21e9034bad60 (patch)
tree971fdd769537cd08fd68d2cb22555b37baddc792 /source/blender/makesdna/DNA_meshdata_types.h
parent9b8c82e2ed5946e9d42932d5c7a217e8115dacba (diff)
Sculpt dyntopo: Smooth improvements and bug fixes
* Added an option to weight smooth by face areas * Dyntopo now caches face areas in a CD_PROP_FLOAT layer * Dyntopo also caches number of edges around verts inside of MDynTopoVert. To avoid increasing the struct size flag was made a short. * Cleanup mode (dissolves 3/4-valence verts) now piggybacks on subdivide code to build list of verts; this is much faster.
Diffstat (limited to 'source/blender/makesdna/DNA_meshdata_types.h')
-rw-r--r--source/blender/makesdna/DNA_meshdata_types.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_meshdata_types.h b/source/blender/makesdna/DNA_meshdata_types.h
index 0ffb48c6b6b..ae756176e5b 100644
--- a/source/blender/makesdna/DNA_meshdata_types.h
+++ b/source/blender/makesdna/DNA_meshdata_types.h
@@ -526,7 +526,7 @@ typedef struct MRecast {
/** \} */
typedef struct MDynTopoVert {
- int flag;
+ short flag, valence;
/**original coordinates*/
float origco[3], origno[3];
@@ -549,7 +549,8 @@ enum {
DYNVERT_FSET_BOUNDARY = (1 << 2),
DYNVERT_NEED_BOUNDARY = (1 << 3),
DYNVERT_NEED_TRIANGULATE = (1 << 4),
- DYNVERT_NEED_DISK_SORT = (1 << 5)
+ DYNVERT_NEED_DISK_SORT = (1 << 5),
+ DYNVERT_NEED_VALENCE = (1 << 6)
};