diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-11-28 06:49:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-11-28 06:49:06 +0400 |
commit | e35b235925608df1a8b06e4047592a363c3e28e9 (patch) | |
tree | 2f1e7dbea4229b933c3477d4af65a256145f45c8 /source/blender/bmesh/tools/bmesh_decimate.h | |
parent | 4fe35721e647126c6f929725d20064d279783ac3 (diff) |
fix [#33320] Decimate modifer in collapse is inconsistent when limiting to a vertex group
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_decimate.h')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_decimate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/bmesh/tools/bmesh_decimate.h b/source/blender/bmesh/tools/bmesh_decimate.h index 4d382d65659..4a557c20ae3 100644 --- a/source/blender/bmesh/tools/bmesh_decimate.h +++ b/source/blender/bmesh/tools/bmesh_decimate.h @@ -37,5 +37,8 @@ void BM_mesh_decimate_dissolve_ex(BMesh *bm, const float angle_limit, const int BMEdge **einput_arr, const int einput_len); void BM_mesh_decimate_dissolve(BMesh *bm, const float angle_limit, const int do_dissolve_boundaries); +/* these weights are accumulated so too high values may reach 'inf' too quickly */ +#define BM_MESH_DECIM_WEIGHT_MAX 100000.0f +#define BM_MESH_DECIM_WEIGHT_EPS (1.0f / BM_MESH_DECIM_WEIGHT_MAX) #endif /* __BMESH_DECIMATE_H__ */ |