diff options
Diffstat (limited to 'source/blender/blenkernel/BKE_mesh_boolean_convert.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_mesh_boolean_convert.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_mesh_boolean_convert.hh b/source/blender/blenkernel/BKE_mesh_boolean_convert.hh index 59f6e75183e..a7a7529f217 100644 --- a/source/blender/blenkernel/BKE_mesh_boolean_convert.hh +++ b/source/blender/blenkernel/BKE_mesh_boolean_convert.hh @@ -32,6 +32,16 @@ struct Mesh; namespace blender::meshintersect { +/** + * Do a mesh boolean operation directly on meshes (without going back and forth to BMesh). + * \param meshes: An array of Mesh pointers. + * \param obmats: An array of pointers to the obmat matrices that transform local + * coordinates to global ones. It is allowed for the pointers to be null, meaning the + * transformation is the identity. + * \param material_remaps: An array of pointers to arrays of maps from material slot numbers in the + * corresponding mesh to the material slot in the first mesh. It is OK for material_remaps or any + * of its constituent arrays to be empty. + */ Mesh *direct_mesh_boolean(blender::Span<const Mesh *> meshes, blender::Span<const float4x4 *> obmats, const float4x4 &target_transform, |