[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54270] trunk/blender/source/blender/bmesh /operators/bmo_triangulate.c: when triangulating ngons, use beauty option to rotate edges.

Campbell Barton ideasman42 at gmail.com
Sun Feb 3 09:07:15 CET 2013


Revision: 54270
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54270
Author:   campbellbarton
Date:     2013-02-03 08:07:14 +0000 (Sun, 03 Feb 2013)
Log Message:
-----------
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

Modified Paths:
--------------
    trunk/blender/source/blender/bmesh/operators/bmo_triangulate.c

Modified: trunk/blender/source/blender/bmesh/operators/bmo_triangulate.c
===================================================================
--- trunk/blender/source/blender/bmesh/operators/bmo_triangulate.c	2013-02-03 07:26:58 UTC (rev 54269)
+++ trunk/blender/source/blender/bmesh/operators/bmo_triangulate.c	2013-02-03 08:07:14 UTC (rev 54270)
@@ -50,6 +50,12 @@
 
 	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);
 }




More information about the Bf-blender-cvs mailing list