From 3813469f46fea6954a7e965ea30dc5067c212151 Mon Sep 17 00:00:00 2001 From: Mariette Yvinec Date: Thu, 2 Jul 1998 12:10:27 +0000 Subject: [PATCH] moved cw(i) and ccw(i) from Triangulation_ds_face_2 to Triangulation_face_base_2 corrected is_valid() --- .../include/CGAL/Triangulation_face_base_2.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Packages/Triangulation_2/include/CGAL/Triangulation_face_base_2.h b/Packages/Triangulation_2/include/CGAL/Triangulation_face_base_2.h index 53ba6a69f1f..46d8a64d0cf 100644 --- a/Packages/Triangulation_2/include/CGAL/Triangulation_face_base_2.h +++ b/Packages/Triangulation_2/include/CGAL/Triangulation_face_base_2.h @@ -10,6 +10,7 @@ class CGAL_Triangulation_face_base_2 { public: typedef typename Gt::Triangle Triangle; + typedef CGAL_Triangulation_face_base_2 Face_base; inline CGAL_Triangulation_face_base_2() @@ -186,12 +187,23 @@ public: N[1] = n1; 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,