From c372318165cd56e9c09eb5792714d9efd98ff265 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Fri, 27 Sep 2019 17:41:05 +0200 Subject: 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 --- source/blender/makesdna/DNA_mesh_defaults.h | 1 + source/blender/makesdna/DNA_mesh_types.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_mesh_defaults.h b/source/blender/makesdna/DNA_mesh_defaults.h index a4354232cf7..f605827d120 100644 --- a/source/blender/makesdna/DNA_mesh_defaults.h +++ b/source/blender/makesdna/DNA_mesh_defaults.h @@ -34,6 +34,7 @@ .smoothresh = DEG2RADF(30), \ .texflag = ME_AUTOSPACE, \ .remesh_voxel_size = 0.1f, \ + .remesh_voxel_adaptivity = 0.0f, \ .flag = ME_REMESH_FIX_POLES | ME_REMESH_REPROJECT_VOLUME, \ } diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h index 1e7c12e97bc..fb9e522dfa9 100644 --- a/source/blender/makesdna/DNA_mesh_types.h +++ b/source/blender/makesdna/DNA_mesh_types.h @@ -190,8 +190,9 @@ typedef struct Mesh { short totcol; float remesh_voxel_size; + float remesh_voxel_adaptivity; char remesh_mode; - char _pad1[7]; + char _pad1[3]; /** Deprecated multiresolution modeling data, only keep for loading old files. */ struct Multires *mr DNA_DEPRECATED; -- cgit v1.2.3