added quality for triangle wrap
This commit is contained in:
parent
a5a1088235
commit
b44fce7de9
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.9 2006/09/14 08:44:07 ganovelli
|
||||||
|
changed t.P(*) in t.cP() nella funzione Barycenter
|
||||||
|
|
||||||
Revision 1.8 2006/06/01 08:38:58 pietroni
|
Revision 1.8 2006/06/01 08:38:58 pietroni
|
||||||
added PointDistance function
|
added PointDistance function
|
||||||
|
|
||||||
|
@ -228,6 +231,14 @@ ScalarType QualityFace( ) const
|
||||||
|
|
||||||
}; //end Class
|
}; //end Class
|
||||||
|
|
||||||
|
/// Returns the normal to the plane passing through p0,p1,p2
|
||||||
|
template<class TriangleType>
|
||||||
|
typename TriangleType::ScalarType QualityFace(const TriangleType &t)
|
||||||
|
{
|
||||||
|
return Quality(t.cP(0), t.cP(1), t.cP(2));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Compute a shape quality measure of the triangle composed by points p0,p1,p2
|
/// Compute a shape quality measure of the triangle composed by points p0,p1,p2
|
||||||
/// It Returns 2*AreaTri/(MaxEdge^2),
|
/// It Returns 2*AreaTri/(MaxEdge^2),
|
||||||
/// the range is range [0.0, 0.866]
|
/// the range is range [0.0, 0.866]
|
||||||
|
|
Loading…
Reference in New Issue