diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-03 12:07:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-03 12:07:14 +0400 |
commit | c6491074992e939d1c2838a133e340b12a230afe (patch) | |
tree | f7c2474b4f87e6d0d74c58ad6d031a18e0c676da /source/blender/bmesh | |
parent | 415b425e6523a67c9c387cf0e29730bb882ef2b5 (diff) |
when triangulating ngons, use beauty option to rotate edges. gives much nicer results and means you can preserve original edges without triangulating ngons one at a time
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/operators/bmo_triangulate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/bmesh/operators/bmo_triangulate.c b/source/blender/bmesh/operators/bmo_triangulate.c index c4d15034c0f..bbcb07e1174 100644 --- a/source/blender/bmesh/operators/bmo_triangulate.c +++ b/source/blender/bmesh/operators/bmo_triangulate.c @@ -50,6 +50,12 @@ void bmo_triangulate_exec(BMesh *bm, BMOperator *op) BM_mesh_triangulate(bm, use_beauty, true); + if (use_beauty) { + BMO_op_callf(bm, op->flag, + "beautify_fill faces=%hf constrain_edges=%He", + BM_ELEM_TAG, BM_ELEM_TAG); + } + BMO_slot_buffer_from_enabled_hflag(bm, op, op->slots_out, "edges.out", BM_EDGE, BM_ELEM_TAG); BMO_slot_buffer_from_enabled_hflag(bm, op, op->slots_out, "faces.out", BM_FACE, BM_ELEM_TAG); } |