Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] CGAL error: assertion violation!

Subject: CGAL users discussion list

List archive

[cgal-discuss] CGAL error: assertion violation!


Chronological Thread 
  • From: Gita Das <>
  • To:
  • Subject: [cgal-discuss] CGAL error: assertion violation!
  • Date: Thu, 23 Oct 2008 10:27:47 +1100
  • Priority: normal

Hallo CGAL Users,

I was trying to use the CGAL library for boolean operations on 2D polygons.
Both polygons (P and Q) are simple, CCW and the computed areas look
fine. However, while using intersection I get the following error:

"CGAL error: assertion violation!
Expr: s != ZERO
File:
/home/gitad/Projects/ITK/practice/carotidmesh/trunk/CGAL-Boolean/CGAL-3.3.1/include/CGAL/predicates/kernel_ftC2.h
Line: 140
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Aborted"

A portion of my code:

typedef CGAL::Cartesian<Number_type> Kernel;
......
Polygon_set_2 S;
S.insert (P);
S.intersection (Q);


Any help would be greatly appreciated.
--
Gita Das, PhD
Department of Medicine (Neurosciences)
Monash University
Australia




Archive powered by MHonArc 2.6.16.

Top of Page