From aada1502e45cdcf63282ae9e4bebc8b00cd1a02e Mon Sep 17 00:00:00 2001 From: nico Date: Thu, 4 May 2017 03:13:08 +0200 Subject: [PATCH] added the possibility of preserving corners of the triangle mesh during the quadrangulation --- vcg/complex/algorithms/quadrangulator.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vcg/complex/algorithms/quadrangulator.h b/vcg/complex/algorithms/quadrangulator.h index b3f7d057..46ce0831 100644 --- a/vcg/complex/algorithms/quadrangulator.h +++ b/vcg/complex/algorithms/quadrangulator.h @@ -671,7 +671,8 @@ public: void Quadrangulate(TriMesh &Tmesh, PolyMesh &Pmesh, - std::vector< std::vector< short int> > &UV) + std::vector< std::vector< short int> > &UV, + bool preserve_border_corner=true) { UV.clear(); Pmesh.Clear(); @@ -714,6 +715,9 @@ public: for (int i=0;i::VertexCornerBorder(Tmesh,math::ToRad(150.0),true); + std::vector > polygons; FindPolygons(Tmesh,polygons,UV);