moved cw(i) and ccw(i) from Triangulation_ds_face_2

to Triangulation_face_base_2
corrected is_valid()
This commit is contained in:
Mariette Yvinec 1998-07-02 12:10:27 +00:00
parent caa5008ccc
commit 3813469f46
1 changed files with 13 additions and 1 deletions

View File

@ -10,6 +10,7 @@ class CGAL_Triangulation_face_base_2 {
public:
typedef typename Gt::Triangle Triangle;
typedef CGAL_Triangulation_face_base_2<Gt> Face_base;
inline
CGAL_Triangulation_face_base_2()
@ -187,11 +188,22 @@ public:
N[2] = n2;
}
//Miscelleanous
inline int ccw(int i) const
{
return (i+1) % 3;
}
inline int cw(int i) const
{
return (i+2) % 3;
}
bool is_valid(bool verbose = false, int level = 0) const
{
bool result = true;
for(int i = 0; i < 3; i++) {
void* n = neighbor(i);
Face_base* n = (Face_base *)neighbor(i);
// The following seems natural, but it may fail if the faces
// this and n are neighbors on two edges (1-dim triangulation,