diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2021-02-22 01:57:03 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2021-02-22 01:57:03 +0300 |
commit | a3f091d7ceda77181422625135225e55afa612c8 (patch) | |
tree | e0529be5ae4da66a1d7fbc3e35162b925f519dc5 /source/blender/blenkernel/BKE_customdata.h | |
parent | 7883eb04ed3a3718a5a3b5e598c0e12eb9708d9f (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.h | 7 |
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, |