diff options
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_decimate.h')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_decimate.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/bmesh/tools/bmesh_decimate.h b/source/blender/bmesh/tools/bmesh_decimate.h index c62288c269a..1de241a1326 100644 --- a/source/blender/bmesh/tools/bmesh_decimate.h +++ b/source/blender/bmesh/tools/bmesh_decimate.h @@ -20,6 +20,20 @@ * \ingroup bmesh */ +/** + * \brief BM_mesh_decimate + * \param bm: The mesh + * \param factor: face count multiplier [0 - 1] + * \param vweights: Optional array of vertex aligned weights [0 - 1], + * a vertex group is the usual source for this. + * \param symmetry_axis: Axis of symmetry, -1 to disable mirror decimate. + * \param symmetry_eps: Threshold when matching mirror verts. + * + * \note The caller is responsible for recalculating face and vertex normals. + * - Vertex normals are maintained while decimating, + * although they won't necessarily match the final recalculated normals. + * - Face normals are not maintained at all. + */ void BM_mesh_decimate_collapse(BMesh *bm, const float factor, float *vweights, @@ -28,6 +42,8 @@ void BM_mesh_decimate_collapse(BMesh *bm, const int symmetry_axis, const float symmetry_eps); +/** + * \param tag_only: so we can call this from an operator */ void BM_mesh_decimate_unsubdivide_ex(BMesh *bm, const int iterations, const bool tag_only); void BM_mesh_decimate_unsubdivide(BMesh *bm, const int iterations); |