Subject: CGAL users discussion list
List archive
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] 2D Arrangement - Precondition error
- Date: Tue, 10 May 2016 09:38:01 +0300
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:apjQsBSSljDy6AYOc6Go5F+x3Npsv+yvbD5Q0YIujvd0So/mwa64ZxON2/xhgRfzUJnB7Loc0qyN4/GmADdLuM/a+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq8yVOl4D3WPmKZpJbzyI7izp/vEMhoVjLqtjgjDomVBvP9ps+GVzOFiIlAz97MrjtLRq8iBXpu5zv5UYCfayLOwESulTAz0idmw0/8b2rgLrTA2V53JaXH9FvABPBl3o4hCycJD+vy+y4udz2SedMsDyZb8xUDWmqaxsTUm72288Kzcl/TSP2YRLh6VBrUf5qg==
Are you sure your segments are disjoint in their interiors?
Even if they were before they were saved in a file, if they were saved using (inexact) floating point, they might have turned into non disjoint. ____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
On Tue, May 10, 2016 at 12:54 AM, Everton Constantino <> wrote:
Hi,
I'm new to CGAL, so forgive me if my question is answered somewhere
else and I failed to find the answer.
I'm reading a very big file with a set of straight segments, after
reading each segment I use the insert_non_intersecting_curves to add
them. I have the same exact setup from here
http://doc.cgal.org/latest/Visibility_2/index.html
I can read all the file in small chunks but when I try to read the whole
thing I get the following error during the execution of the
insert_non_intersecting_curves:
terminate called after throwing an instance of
'CGAL::Precondition_exception'
what(): CGAL ERROR: precondition violation!
Expr: comp_f(object, nodeP->object) != LARGER
File: /usr/include/CGAL/Multiset.h
Line: 2141
I'm using CGAL from Archlinux repo, latest stuff.
Tried reading the docs to find what this precondition means but no luck.
The segments are actually roads. I tried changing to the non_caching
version since data is sparsely connected but no luck either, same error.
If I read half the file, for example, the thing runs perfectly. If I try
to read around the segment that gave the error it also works fine.
Am I doing something obviously stupid?
Regards,
--
Everton R. Constantino <>
"Success is overrated"
- [cgal-discuss] 2D Arrangement - Precondition error, Everton Constantino, 05/09/2016
- Re: [cgal-discuss] 2D Arrangement - Precondition error, Efi Fogel, 05/10/2016
- Re: [cgal-discuss] 2D Arrangement - Precondition error, Everton Constantino, 05/10/2016
- Re: [cgal-discuss] 2D Arrangement - Precondition error, Efi Fogel, 05/10/2016
Archive powered by MHonArc 2.6.18.