diff options
author | Hans Goudey <h.goudey@me.com> | 2021-07-31 05:18:44 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-07-31 05:18:44 +0300 |
commit | 37e2fec0908713aa21ed21e09c2e13837e219eb0 (patch) | |
tree | c004daa93b8ec0f3006555c5ed4a217f05f53f89 /source/blender/editors/object/object_remesh.cc | |
parent | 7c961e716db66799f6227f92472b164acc3c184b (diff) |
Cleanup: Voxel remesh function naming
- Remove BKE prefix for static functions
- Make specific intermediate functions static
- Avoid unecessary "_to_mesh_nomain" suffix
Diffstat (limited to 'source/blender/editors/object/object_remesh.cc')
-rw-r--r-- | source/blender/editors/object/object_remesh.cc | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/source/blender/editors/object/object_remesh.cc b/source/blender/editors/object/object_remesh.cc index 6bee04e2b4f..eb9a6a5856d 100644 --- a/source/blender/editors/object/object_remesh.cc +++ b/source/blender/editors/object/object_remesh.cc @@ -151,7 +151,7 @@ static int voxel_remesh_exec(bContext *C, wmOperator *op) isovalue = mesh->remesh_voxel_size * 0.3f; } - new_mesh = BKE_mesh_remesh_voxel_to_mesh_nomain( + new_mesh = BKE_mesh_remesh_voxel( mesh, mesh->remesh_voxel_size, mesh->remesh_voxel_adaptivity, isovalue); if (!new_mesh) { @@ -853,19 +853,18 @@ static void quadriflow_start_job(void *customdata, short *stop, short *do_update /* Bisect the input mesh using the paint symmetry settings */ bisect_mesh = remesh_symmetry_bisect(bisect_mesh, qj->symmetry_axes); - new_mesh = BKE_mesh_remesh_quadriflow_to_mesh_nomain( - bisect_mesh, - qj->target_faces, - qj->seed, - qj->use_preserve_sharp, - (qj->use_preserve_boundary || qj->use_mesh_symmetry), + new_mesh = BKE_mesh_remesh_quadriflow(bisect_mesh, + qj->target_faces, + qj->seed, + qj->use_preserve_sharp, + (qj->use_preserve_boundary || qj->use_mesh_symmetry), #ifdef USE_MESH_CURVATURE - qj->use_mesh_curvature, + qj->use_mesh_curvature, #else - false, + false, #endif - quadriflow_update_job, - (void *)qj); + quadriflow_update_job, + (void *)qj); BKE_id_free(nullptr, bisect_mesh); |