From ae8327dbf3afcdb6a6a0335aceeaa58600d7f1d3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 13 Feb 2014 19:09:28 +1100 Subject: Mask: add option to detect self intersections --- source/blender/bmesh/operators/bmo_triangulate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/bmesh/operators/bmo_triangulate.c') 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, -- cgit v1.2.3