From 8399375098fa58d0201b861d035d4a1d56370baf Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 27 Apr 2022 18:52:56 -0500 Subject: Cleanup: Reword comment, rename variables Use "transform" instead of "obmat", because the meshes don't necessarily come from objects. --- .../blender/blenkernel/BKE_mesh_boolean_convert.hh | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'source/blender/blenkernel/BKE_mesh_boolean_convert.hh') 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 meshes, - blender::Span obmats, +Mesh *direct_mesh_boolean(Span meshes, + Span transforms, const float4x4 &target_transform, - blender::Span> material_remaps, + Span> material_remaps, bool use_self, bool hole_tolerant, int boolean_mode); -- cgit v1.2.3