diff --git a/vcg/space/triangle2.h b/vcg/space/triangle2.h index 95e936c7..f1da7768 100644 --- a/vcg/space/triangle2.h +++ b/vcg/space/triangle2.h @@ -133,6 +133,13 @@ void PointDistance(const CoordType & q, } } +///retutn true if the face is contuerclockwise oriented +bool IsCCW() +{ + ScalarType Area=(P(1)-P(0))^(P(2)-P(0)); + return (Area>0); +} + }; //end Class