From 9682fcd27de269d7e70401e25fedacf236a0d65a Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 26 Aug 2014 01:39:18 +0000 Subject: [PATCH] Added to the UpdateFlags::FaceFauxSignedCrease the option to mark as non faux also the boundary edges. --- vcg/complex/algorithms/update/flag.h | 33 ++++++++-------------------- 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/vcg/complex/algorithms/update/flag.h b/vcg/complex/algorithms/update/flag.h index 7f7d5f61..4f7500fb 100644 --- a/vcg/complex/algorithms/update/flag.h +++ b/vcg/complex/algorithms/update/flag.h @@ -365,7 +365,10 @@ public: /// e.g. the edge such that the signed dihedral angle between the normal of two faces sharing it, is between the two given thresholds. /// In this way all the near planar edges are marked as Faux Edges (e.g. edges to be ignored) /// Note that it uses the signed dihedral angle convention (negative for concave edges and positive for convex ones); - static void FaceFauxSignedCrease(MeshType &m, float AngleRadNeg, float AngleRadPos ) + /// + /// Optionally it can also mark as feature edges also the boundary edges. + /// + static void FaceFauxSignedCrease(MeshType &m, float AngleRadNeg, float AngleRadPos, bool MarkBorderFlag = false ) { RequirePerFaceFlags(m); RequireFFAdjacency(m); @@ -382,6 +385,10 @@ public: if(angle>AngleRadNeg && angleN()) > AngleRad) - (*fi).ClearF(z); - } - } - } - } + FaceFauxSignedCrease(m,-AngleRad,AngleRad); } }; // end class