Subject: CGAL users discussion list
List archive
- From: gupta61 <>
- To:
- Subject: Re: [cgal-discuss] Assertion violation in Delaunay_triangulation_3.h
- Date: Fri, 28 Mar 2014 15:03:35 -0700 (PDT)
One more thing. So the place where the code is failing is
(Taken from Delaunay_triangulation_3.h, CGAL 4.1)
////////////////////////////////////////////////////////////////////////////////////
if ( ! Tr_Base::is_valid(c,verbose,level) ) {
if (verbose) {
std::cerr << "combinatorically invalid cell" ;
for (int i=0; i <= dimension(); i++ )
std::cerr << c->vertex(i)->point() << ", " ;
std::cerr << std::endl;
}
CGAL_triangulation_assertion(false);
return false;
}
switch ( dimension() ) {
case 3:
{
if ( ! is_infinite(c) ) {
is_valid_finite(c,verbose,level);
for (int i=0; i<4; i++ ) {
if (side_of_sphere(c,
c->vertex((c->neighbor(i))->index(c))->point())
== ON_BOUNDED_SIDE ) {
if (verbose)
std::cerr << "non-empty sphere " << std::endl;
CGAL_triangulation_assertion(false);
return false;
}
}
}
break;
}
//////////////////////////////////////////////////////////////////////////////////////////////
Now the triangulation is valid because it is checking that
"Tr_Base::is_valid(c,verbose,level)" through this call. It is the second
test which I don't understand in terms of what it is trying to check? Can
you let me know a little bit more details about what /property/ is it
checking by this call "side_of_sphere(c,
c->vertex((c->neighbor(i))->index(c))->point()) == ON_BOUNDED_SIDE" ?
Thanks.
-----
Piyush Gupta
UIUC
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Assertion-violation-in-Delaunay-triangulation-3-h-tp4659027p4659031.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Assertion violation in Delaunay_triangulation_3.h, gupta61, 03/27/2014
- Re: [cgal-discuss] Assertion violation in Delaunay_triangulation_3.h, Olivier Devillers, 03/28/2014
- Re: [cgal-discuss] Assertion violation in Delaunay_triangulation_3.h, gupta61, 03/28/2014
- Re: [cgal-discuss] Assertion violation in Delaunay_triangulation_3.h, gupta61, 03/28/2014
- Re: [cgal-discuss] Assertion violation in Delaunay_triangulation_3.h, Monique Teillaud, 03/31/2014
- Re: [cgal-discuss] Assertion violation in Delaunay_triangulation_3.h, gupta61, 03/28/2014
- Re: [cgal-discuss] Assertion violation in Delaunay_triangulation_3.h, gupta61, 03/28/2014
- Re: [cgal-discuss] Assertion violation in Delaunay_triangulation_3.h, Olivier Devillers, 03/28/2014
Archive powered by MHonArc 2.6.18.