diff options
author | Hans Goudey <h.goudey@me.com> | 2021-04-02 08:16:01 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-04-02 08:16:23 +0300 |
commit | a0e1080428abb991c443a40b29d2ae3948eb4a56 (patch) | |
tree | 735c26798d07a07690ebe827d604ee438afcc3e9 /source/blender/bmesh/tools | |
parent | 77f685774090c18b8da7a9860861664ed0fdd81e (diff) |
Cleanup: Remove unecessary C API for direct mesh boolean
The main goal here is to remove the need for a C API to the code in
`mesh_boolean_convert.cc`. This is achieved by moving `MOD_boolean.c`
to C++ and making the necessary changes for it to compile. On top of
that there are some other slight simplifications possible to the
direct mesh boolean code: it doesn't need to copy the material
remaps, and the modifier code can use some other C++ types directly.
Diffstat (limited to 'source/blender/bmesh/tools')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_intersect.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/bmesh/tools/bmesh_intersect.h b/source/blender/bmesh/tools/bmesh_intersect.h index adb88f2fd76..d09ea67a3bb 100644 --- a/source/blender/bmesh/tools/bmesh_intersect.h +++ b/source/blender/bmesh/tools/bmesh_intersect.h @@ -20,6 +20,10 @@ * \ingroup bmesh */ +#ifdef __cplusplus +extern "C" { +#endif + bool BM_mesh_intersect(BMesh *bm, struct BMLoop *(*looptris)[3], const int looptris_tot, @@ -41,3 +45,7 @@ enum { BMESH_ISECT_BOOLEAN_UNION = 1, BMESH_ISECT_BOOLEAN_DIFFERENCE = 2, }; + +#ifdef __cplusplus +} +#endif |