Subject: CGAL users discussion list
List archive
- From: <>
- To:
- Subject: [cgal-discuss] CGAL:precondition violation-help needed
- Date: Tue, 14 Oct 2008 01:23:57 +0200 (CEST)
Hallo,
I was trying to use the CGAL library for boolean operations on 2D polygons.
Let's say I have three polygons P (102 vertices), Q(42 vertices) and R
(255 vertices). All of them are closed, simple, CCW. I would like to
find the overlapping area between P & Q, and also between P & R.
I use the follow code:
Polygon_set_2 S;
S.insert (P);
S.intersection (Q);
With P & Q, it works fine but with P & R, I get the follow. error
message. I am not sure how to resolve this problem- any help/suggestion
would be greatly appreciated.
Thanks and Kind regards,
Gita Das
Monash University
Australia
"CGAL error: precondition violation!
Expr: comp_f(object, nodeP->object) != LARGER
File:
/home/gitad/Projects/ITK/practice/carotidmesh/trunk/CGAL-Boolean/CGAL-3.3.1/include/CGAL/Multiset.h
Line: 2141
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Aborted"
- [cgal-discuss] CGAL:precondition violation-help needed, gita.das, 10/14/2008
Archive powered by MHonArc 2.6.16.