From c918b9097cb6ce3c6fd17112f959e5ca4e9afb28 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Sun, 22 Jun 2014 12:28:56 +0000 Subject: [PATCH] correct 1 bug in VertexBorderCorner function --- vcg/complex/algorithms/point_sampling.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vcg/complex/algorithms/point_sampling.h b/vcg/complex/algorithms/point_sampling.h index a8af2fb1..ee2b5170 100644 --- a/vcg/complex/algorithms/point_sampling.h +++ b/vcg/complex/algorithms/point_sampling.h @@ -491,7 +491,8 @@ static void VertexBorderCorner(MeshType & m, VertexSampler &ps, float angleRad) for(VertexIterator vi=m.vert.begin();vi!=m.vert.end();++vi) { - if(angleSumH[vi]IsB()) + if((angleSumH[vi]IsB())|| + (angleSumH[vi]>(360-angleRad) && vi->IsB())) ps.AddVert(*vi); }