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:
authorHoward Trickey <howard.trickey@gmail.com>2021-02-22 01:57:03 +0300
committerHoward Trickey <howard.trickey@gmail.com>2021-02-22 01:57:03 +0300
commita3f091d7ceda77181422625135225e55afa612c8 (patch)
treee0529be5ae4da66a1d7fbc3e35162b925f519dc5 /source/blender/blenkernel/BKE_customdata.h
parent7883eb04ed3a3718a5a3b5e598c0e12eb9708d9f (diff)
Change Exact Boolean modifier to skip round trip through BMesh.
The Exact modifier code had been written to avoid using BMesh but in the initial release the modifier still converted all Meshes to BMeshes, and then after running the boolean code on the BMeshes, converted the result back to a Mesh. This change skips that. Most of the work here is in getting the Custom Data layers right. The approach taken is to merge default layers from all operand meshes into the final result, and then use the original verts, edges, polys, and loops to copy or interpolate the appropriate custom data layers from all operands into the result.
Diffstat (limited to 'source/blender/blenkernel/BKE_customdata.h')
-rw-r--r--source/blender/blenkernel/BKE_customdata.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h
index 57fdafaf8d9..ed319948160 100644
--- a/source/blender/blenkernel/BKE_customdata.h
+++ b/source/blender/blenkernel/BKE_customdata.h
@@ -249,6 +249,13 @@ void CustomData_copy_data(const struct CustomData *source,
int source_index,
int dest_index,
int count);
+void CustomData_copy_data_layer(const CustomData *source,
+ CustomData *dest,
+ int src_layer_index,
+ int dst_layer_index,
+ int src_index,
+ int dst_index,
+ int count);
void CustomData_copy_data_named(const struct CustomData *source,
struct CustomData *dest,
int source_index,