Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-10-19 13:11:38 +0300
committerJacques Lucke <jacques@blender.org>2020-10-19 13:12:44 +0300
commitf7832b1583cd13bde182192bce358db3062a0547 (patch)
treeffde72d963ea62b239c6a57c928534823a22808d /source/blender/modifiers/MOD_modifiertypes.h
parentbd15efefd2f2d3554364303a09b67198e39d7bcd (diff)
Volumes: new Volume to Mesh modifier
This modifier is the opposite of the recently added Mesh to Volume modifier. It converts the "surface" of a volume into a mesh. The "surface" is defined by a threshold value. All voxels with a density higher than the threshold are considered to be inside the volume, while all others will be outside. By default, the resolution of the generated mesh depends on the voxel size of the volume grid. The resolution can be customized. It should be noted that a lower resolution might not make this modifier faster. This is because we have to downsample the openvdb grid, which isn't a cheap operation. Converting a mesh to a volume and then back to a mesh is possible, but it does require two separate mesh objects for now. Reviewers: brecht Differential Revision: https://developer.blender.org/D9141
Diffstat (limited to 'source/blender/modifiers/MOD_modifiertypes.h')
-rw-r--r--source/blender/modifiers/MOD_modifiertypes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/modifiers/MOD_modifiertypes.h b/source/blender/modifiers/MOD_modifiertypes.h
index 6dc50e1b47d..9c488780366 100644
--- a/source/blender/modifiers/MOD_modifiertypes.h
+++ b/source/blender/modifiers/MOD_modifiertypes.h
@@ -88,6 +88,7 @@ extern ModifierTypeInfo modifierType_WeightedNormal;
extern ModifierTypeInfo modifierType_Simulation;
extern ModifierTypeInfo modifierType_MeshToVolume;
extern ModifierTypeInfo modifierType_VolumeDisplace;
+extern ModifierTypeInfo modifierType_VolumeToMesh;
/* MOD_util.c */
void modifier_type_init(ModifierTypeInfo *types[]);