Refactor: Move mesh_boolean_convert from blenkernel to geometry.

Header file is renamed to GEO_mesh_boolean_convert.cc and
files that included it are updated to use that path.
This is in preparation for bigger changes to the internal
boolean API, which make more sense as a "geometry" API
than a kernel API.

Pull Request: https://projects.blender.org/blender/blender/pulls/119336
This commit is contained in:
Howard Trickey 2024-03-11 18:17:57 +01:00
parent 1f1fbda3ee
commit 70fa3becad
6 changed files with 14 additions and 17 deletions

View File

@ -198,7 +198,6 @@ set(SRC
intern/mball.cc
intern/mball_tessellate.cc
intern/mesh.cc
intern/mesh_boolean_convert.cc
intern/mesh_calc_edges.cc
intern/mesh_compare.cc
intern/mesh_convert.cc
@ -446,7 +445,6 @@ set(SRC
BKE_mball_tessellate.hh
BKE_mesh.h
BKE_mesh.hh
BKE_mesh_boolean_convert.hh
BKE_mesh_compare.hh
BKE_mesh_fair.hh
BKE_mesh_iterators.hh
@ -822,14 +820,6 @@ if(WITH_TBB)
)
endif()
if(WITH_GMP)
add_definitions(-DWITH_GMP)
list(APPEND INC_SYS
${GMP_INCLUDE_DIRS}
)
endif()
# # Warnings as errors, this is too strict!
# if(MSVC)
# string(APPEND CMAKE_C_FLAGS " /WX")

View File

@ -20,6 +20,7 @@ set(SRC
intern/extend_curves.cc
intern/fillet_curves.cc
intern/join_geometries.cc
intern/mesh_boolean_convert.cc
intern/mesh_copy_selection.cc
intern/mesh_merge_by_distance.cc
intern/mesh_primitive_cuboid.cc
@ -53,6 +54,7 @@ set(SRC
GEO_extend_curves.hh
GEO_fillet_curves.hh
GEO_join_geometries.hh
GEO_mesh_boolean_convert.hh
GEO_mesh_copy_selection.hh
GEO_mesh_merge_by_distance.hh
GEO_mesh_primitive_cuboid.hh
@ -116,4 +118,12 @@ if(WITH_TBB)
)
endif()
if(WITH_GMP)
add_definitions(-DWITH_GMP)
list(APPEND INC_SYS
${GMP_INCLUDE_DIRS}
)
endif()
blender_add_lib(bf_geometry "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")

View File

@ -4,10 +4,6 @@
#pragma once
/** \file
* \ingroup bke
*/
#include "BLI_array.hh"
#include "BLI_math_matrix_types.hh"
#include "BLI_mesh_boolean.hh"

View File

@ -11,7 +11,6 @@
#include "BKE_attribute.hh"
#include "BKE_customdata.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_boolean_convert.hh"
#include "BLI_alloca.h"
#include "BLI_array.hh"
@ -26,6 +25,8 @@
#include "BLI_task.hh"
#include "BLI_virtual_array.hh"
#include "GEO_mesh_boolean_convert.hh"
namespace blender::meshintersect {
#ifdef WITH_GMP

View File

@ -31,7 +31,6 @@
#include "BKE_lib_query.hh"
#include "BKE_material.h"
#include "BKE_mesh.hh"
#include "BKE_mesh_boolean_convert.hh"
#include "BKE_mesh_wrapper.hh"
#include "BKE_modifier.hh"
@ -45,6 +44,7 @@
#include "MEM_guardedalloc.h"
#include "GEO_mesh_boolean_convert.hh"
#include "GEO_randomize.hh"
#include "bmesh.hh"

View File

@ -4,7 +4,6 @@
#include "BKE_geometry_set_instances.hh"
#include "BKE_instances.hh"
#include "BKE_mesh_boolean_convert.hh"
#include "DNA_mesh_types.h"
#include "DNA_object_types.h"
@ -14,6 +13,7 @@
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "GEO_mesh_boolean_convert.hh"
#include "GEO_randomize.hh"
#include "node_geometry_util.hh"