Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Sweep_line_2 bug crashed doing polygons

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Sweep_line_2 bug crashed doing polygons


Chronological Thread 
  • From:
  • To:
  • Subject: Re: [cgal-discuss] Sweep_line_2 bug crashed doing polygons
  • Date: Fri, 17 Jul 2009 21:12:35 +0300

Indeed. The sweep-line alg. requires an exact-predicate-exact-construction kernel.

It requires exact constructions when it constructs new geometric object, for example, intersections points. If, for example, the sweep line is used to construct an arrangement of segments that do not intersect each other in their interior, then exact constructions is not required. Exact predicates are always required.

Quoting "Ben Supnik"
<>:

Hi Konstantin,

Is it possible that the sweep-line algorithm requires an exact-pred-exact construction kernel?

Boolean ops are built on top of arrangement, and arrangement does require exact constructions...it needs to "remember" and persist intersection points exactly to maintain topological correctness after inserting curves.

I do not know if this is true for sweep-line or whether sweep-line is capable of comparing intersections based on their input curves...

To the CGAL folks...is there a table or single place in the manual where the kernel requirements for each package are specified?

cheers
ben

Konstantin Sinitsyn wrote:
Hello!

I am new to CGAL and currently I have some problems with polygon boolean
operations in my application.

Look at attched source file, some precondition assertion occurs in sweep
line algorithm when calling do_intersect function on two simple
polygons. I thing this happens when we have intersections with vertical
edges of polygons (with horizontal looks like all ok).

PS: I'm using lasted version of CGAL (3.4) and boost (1.39), MSVC 9.0 SP1.

Thanks.
Konstantin!



--
Scenery Home Page: http://scenery.x-plane.com/
Scenery blog: http://xplanescenery.blogspot.com/
Plugin SDK: http://www.xsquawkbox.net/xpsdk/
X-Plane Wiki: http://wiki.x-plane.com/
Scenery mailing list:

Developer mailing list:

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss






Archive powered by MHonArc 2.6.16.

Top of Page