diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-09-27 18:41:05 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-09-27 20:12:51 +0300 |
commit | c372318165cd56e9c09eb5792714d9efd98ff265 (patch) | |
tree | 578c183475b55ceed16b53df01aa8927463533e4 /source/blender/editors/object/object_remesh.c | |
parent | 82136bb36effa6a305b8187c897876efb92e4b58 (diff) |
Voxel remesh: Enable adaptivity
This commit enables OpenVDB adaptivity in the voxel remesher. It can be useful to reduce the polygon count if you want to switch to dyntopo after using the voxel remesher workflow.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D5918
Diffstat (limited to 'source/blender/editors/object/object_remesh.c')
-rw-r--r-- | source/blender/editors/object/object_remesh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_remesh.c b/source/blender/editors/object/object_remesh.c index c2616c792e9..2c05ae14f2e 100644 --- a/source/blender/editors/object/object_remesh.c +++ b/source/blender/editors/object/object_remesh.c @@ -111,13 +111,14 @@ static int voxel_remesh_exec(bContext *C, wmOperator *op) ED_sculpt_undo_geometry_begin(ob); } - new_mesh = BKE_mesh_remesh_voxel_to_mesh_nomain(mesh, mesh->remesh_voxel_size); + new_mesh = BKE_mesh_remesh_voxel_to_mesh_nomain( + mesh, mesh->remesh_voxel_size, mesh->remesh_voxel_adaptivity); if (!new_mesh) { return OPERATOR_CANCELLED; } - if (mesh->flag & ME_REMESH_FIX_POLES) { + if (mesh->flag & ME_REMESH_FIX_POLES && mesh->remesh_voxel_adaptivity <= 0.0f) { new_mesh = BKE_mesh_remesh_voxel_fix_poles(new_mesh); BKE_mesh_calc_normals(new_mesh); } |