From 67cb231cc3b1005cbdd24715486cbf837ff712c6 Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 26 Apr 2019 16:54:43 +1000 Subject: [PATCH] added one flag in Triangulate to modify only selected faces --- vcg/complex/algorithms/polygonal_algorithms.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vcg/complex/algorithms/polygonal_algorithms.h b/vcg/complex/algorithms/polygonal_algorithms.h index 9e6d0a80..20834652 100644 --- a/vcg/complex/algorithms/polygonal_algorithms.h +++ b/vcg/complex/algorithms/polygonal_algorithms.h @@ -1380,18 +1380,24 @@ public: }while (!NeedMerge.empty()); } - static void Triangulate(PolyMeshType &poly_m, bool alsoTriangles = true) + static void Triangulate(PolyMeshType &poly_m, + bool alsoTriangles = true, + bool OnlyS=false) { size_t size0 = poly_m.face.size(); if (alsoTriangles) { for (size_t i=0; i 3) { Triangulate(poly_m, i);