changed t.P(*) in t.cP() nella funzione Barycenter

This commit is contained in:
ganovelli 2006-09-14 08:44:07 +00:00
parent cba93abba3
commit 3f091b3013
1 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.8 2006/06/01 08:38:58 pietroni
added PointDistance function
Revision 1.7 2006/03/01 15:35:09 pietroni
compiled InterspolationParameters function
@ -277,7 +280,7 @@ typename TriangleType::ScalarType DoubleArea(const TriangleType &t)
template<class TriangleType>
Point3<typename TriangleType::ScalarType> Barycenter(const TriangleType &t)
{
return ((t.P(0)+t.P(1)+t.P(2))/(typename TriangleType::ScalarType) 3.0);
return ((t.cP(0)+t.cP(1)+t.cP(2))/(typename TriangleType::ScalarType) 3.0);
}
template<class TriangleType>