diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-13 12:09:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-13 12:12:28 +0400 |
commit | ae8327dbf3afcdb6a6a0335aceeaa58600d7f1d3 (patch) | |
tree | 79ee11570a6ebb3d0ce27aa35e524c0991c17fad /source/blender/bmesh/operators/bmo_triangulate.c | |
parent | c85e66e7fe6d12c8a1b33dec703e9bb342b9953b (diff) |
Mask: add option to detect self intersections
Diffstat (limited to 'source/blender/bmesh/operators/bmo_triangulate.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_triangulate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_triangulate.c b/source/blender/bmesh/operators/bmo_triangulate.c index b66c91678c0..8e254b2e499 100644 --- a/source/blender/bmesh/operators/bmo_triangulate.c +++ b/source/blender/bmesh/operators/bmo_triangulate.c @@ -69,6 +69,7 @@ void bmo_triangle_fill_exec(BMesh *bm, BMOperator *op) ScanFillFace *sf_tri; SmallHash hash; float normal[3], *normal_pt; + const int scanfill_flag = BLI_SCANFILL_CALC_HOLES | BLI_SCANFILL_CALC_POLYS | BLI_SCANFILL_CALC_LOOSE; BLI_smallhash_init_ex(&hash, BMO_slot_buffer_count(op->slots_in, "edges")); @@ -104,7 +105,7 @@ void bmo_triangle_fill_exec(BMesh *bm, BMOperator *op) normal_pt = normal; } - BLI_scanfill_calc_ex(&sf_ctx, BLI_SCANFILL_CALC_HOLES | BLI_SCANFILL_CALC_LOOSE, normal_pt); + BLI_scanfill_calc_ex(&sf_ctx, scanfill_flag, normal_pt); for (sf_tri = sf_ctx.fillfacebase.first; sf_tri; sf_tri = sf_tri->next) { BMFace *f = BM_face_create_quad_tri(bm, |