From 49cab86975bc999a2bbdf85c3d04f8dd554e35df Mon Sep 17 00:00:00 2001 From: Monique Teillaud Date: Fri, 30 Oct 1998 10:05:23 +0000 Subject: [PATCH] bug fix --- .../include/CGAL/Triangulation_ds_cell_3.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Packages/Triangulation_3/include/CGAL/Triangulation_ds_cell_3.h b/Packages/Triangulation_3/include/CGAL/Triangulation_ds_cell_3.h index 557c9876126..0ed42bdaf27 100644 --- a/Packages/Triangulation_3/include/CGAL/Triangulation_ds_cell_3.h +++ b/Packages/Triangulation_3/include/CGAL/Triangulation_ds_cell_3.h @@ -265,8 +265,10 @@ public: case 1: { - Vertex* v0; Vertex* v1; - Cell* n0; Cell* n1; + Vertex* v0 = vertex(0); + Vertex* v1 = vertex(1); + Cell* n0 = neighbor(0); + Cell* n1 = neighbor(1); if ( v0 == NULL || v1 == NULL ) { if (verbose) { cerr << "vertex 0 or 1 NULL" << endl;} @@ -285,15 +287,15 @@ public: CGAL_triangulation_assertion(false); return false; } - if ( v0 != n0->vertex(1) ) { + if ( v0 != n1->vertex(1) ) { if (verbose) { cerr << - "neighbor 0 does not have vertex 0 as vertex 1" + "neighbor 1 does not have vertex 0 as vertex 1" << endl;} CGAL_triangulation_assertion(false); return false; } - if ( v1 != n1->vertex(0) ) { + if ( v1 != n0->vertex(0) ) { if (verbose) { cerr << - "neighbor 1 does not have vertex 1 as vertex 0" + "neighbor 0 does not have vertex 1 as vertex 0" << endl;} CGAL_triangulation_assertion(false); return false; }