From 8959e68790e1447c5c6530aba47b4cb6a4eef452 Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 14 Nov 2014 23:01:21 +0000 Subject: [PATCH] Small change still related to the normal -> trianglenormal renaming --- vcg/complex/algorithms/smooth.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vcg/complex/algorithms/smooth.h b/vcg/complex/algorithms/smooth.h index f67c9c05..7e559a06 100644 --- a/vcg/complex/algorithms/smooth.h +++ b/vcg/complex/algorithms/smooth.h @@ -297,8 +297,8 @@ static void VertexCoordPlanarLaplacian(MeshType &m, int step, float AngleThrRad for(fi=m.face.begin();fi!=m.face.end();++fi){ if(!(*fi).IsD()){ for (int j = 0; j < 3; ++j) { - if(Angle( NormalizedNormal(TD[(*fi).V0(j)].sum, (*fi).P1(j), (*fi).P2(j) ), - NormalizedNormal( (*fi).P0(j) , (*fi).P1(j), (*fi).P2(j) ) ) > AngleThrRad ) + if(Angle( Normal(TD[(*fi).V0(j)].sum, (*fi).P1(j), (*fi).P2(j) ), + Normal( (*fi).P0(j) , (*fi).P1(j), (*fi).P2(j) ) ) > AngleThrRad ) TD[(*fi).V0(j)].sum = (*fi).P0(j); } } @@ -306,8 +306,8 @@ static void VertexCoordPlanarLaplacian(MeshType &m, int step, float AngleThrRad for(fi=m.face.begin();fi!=m.face.end();++fi){ if(!(*fi).IsD()){ for (int j = 0; j < 3; ++j) { - if(Angle( NormalizedNormal(TD[(*fi).V0(j)].sum, TD[(*fi).V1(j)].sum, (*fi).P2(j) ), - NormalizedNormal( (*fi).P0(j) , (*fi).P1(j), (*fi).P2(j) ) ) > AngleThrRad ) + if(Angle( Normal(TD[(*fi).V0(j)].sum, TD[(*fi).V1(j)].sum, (*fi).P2(j) ), + Normal( (*fi).P0(j) , (*fi).P1(j), (*fi).P2(j) ) ) > AngleThrRad ) { TD[(*fi).V0(j)].sum = (*fi).P0(j); TD[(*fi).V1(j)].sum = (*fi).P1(j);