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:
authorHans Goudey <h.goudey@me.com>2022-04-28 02:52:56 +0300
committerHans Goudey <h.goudey@me.com>2022-04-28 02:53:56 +0300
commit8399375098fa58d0201b861d035d4a1d56370baf (patch)
tree8a1647ad3699eb30e89362c18d1eec5f68d67f35 /source/blender/blenkernel/BKE_mesh_boolean_convert.hh
parent52a5f68562680c0ccd6d4e525098bb5e2af7d0bd (diff)
Cleanup: Reword comment, rename variables
Use "transform" instead of "obmat", because the meshes don't necessarily come from objects.
Diffstat (limited to 'source/blender/blenkernel/BKE_mesh_boolean_convert.hh')
-rw-r--r--source/blender/blenkernel/BKE_mesh_boolean_convert.hh20
1 files changed, 9 insertions, 11 deletions
diff --git a/source/blender/blenkernel/BKE_mesh_boolean_convert.hh b/source/blender/blenkernel/BKE_mesh_boolean_convert.hh
index 54209f1ccfc..abaf2ab0178 100644
--- a/source/blender/blenkernel/BKE_mesh_boolean_convert.hh
+++ b/source/blender/blenkernel/BKE_mesh_boolean_convert.hh
@@ -17,19 +17,17 @@ 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.
+ * Do a mesh boolean operation directly on meshes (without going back and forth from BMesh).
+ * \param transforms: An array of pointers to transform matrices used for each mesh's positions.
+ * It is allowed for the pointers to be null, meaning the transformation is the identity.
+ * \param material_remaps: An array 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,
+Mesh *direct_mesh_boolean(Span<const Mesh *> meshes,
+ Span<const float4x4 *> transforms,
const float4x4 &target_transform,
- blender::Span<blender::Array<short>> material_remaps,
+ Span<Array<short>> material_remaps,
bool use_self,
bool hole_tolerant,
int boolean_mode);