diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-11 09:46:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-11 09:54:42 +0300 |
commit | d70e0b6654e6564a3ca3f6f9094c63c36544bc45 (patch) | |
tree | a3fe981c2a64dbd3b41853d35970e1740aaa10ce /source/blender/bmesh/tools/bmesh_intersect.h | |
parent | 9f3ed82f35d68cc9e723fab4e34ab4ddc7e7551c (diff) |
BMesh: Boolean as an edit-mode tool
Works much the same as intersect operator,
expose as a new operator since for users its quite different.
Access from face menu.
Internally, this adds boolean args to BM_mesh_intersect function.
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_intersect.h')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_intersect.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/bmesh/tools/bmesh_intersect.h b/source/blender/bmesh/tools/bmesh_intersect.h index a733815b63a..d0cc41654eb 100644 --- a/source/blender/bmesh/tools/bmesh_intersect.h +++ b/source/blender/bmesh/tools/bmesh_intersect.h @@ -29,7 +29,16 @@ bool BM_mesh_intersect( BMesh *bm, struct BMLoop *(*looptris)[3], const int looptris_tot, int (*test_fn)(BMFace *f, void *user_data), void *user_data, - const bool use_self, const bool use_separate, const bool use_island_connect, + const bool use_self, const bool use_separate, const bool use_dissolve, const bool use_island_connect, + const int boolean_mode, const float eps); +enum { + BMESH_ISECT_BOOLEAN_NONE = -1, + /* aligned with BooleanModifierOp */ + BMESH_ISECT_BOOLEAN_ISECT = 0, + BMESH_ISECT_BOOLEAN_UNION = 1, + BMESH_ISECT_BOOLEAN_DIFFERENCE = 2, +}; + #endif /* __BMESH_INTERSECT_H__ */ |