Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] 2D Arrangement - Precondition error

Subject: CGAL users discussion list

List archive

[cgal-discuss] 2D Arrangement - Precondition error


Chronological Thread 
  • From: Everton Constantino <>
  • To:
  • Subject: [cgal-discuss] 2D Arrangement - Precondition error
  • Date: Mon, 9 May 2016 18:54:43 -0300
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:h7IhJBZ32eYBZK/8qpNXhI3/LSx+4OfEezUN459isYplN5qZpcmybnLW6fgltlLVR4KTs6sC0LqH9fm7EjRbqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh7H0osaYO14ArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIYTGZn9Kq83RLgdADU9OH0u/+XqswPCRE2B/CgySGITxzdWDhLZ6xeydZD3qTfzsPZ83i7SacDoQKooXjLk5KBtUwPhjjsGMTkR9XDUjch5huRQpxf39E83+JLdfIzAbKk2RajaZ95PHWc=

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"

Attachment: signature.asc
Description: PGP signature




Archive powered by MHonArc 2.6.18.

Top of Page