Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Behavior of merging opp-direction curves -

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Behavior of merging opp-direction curves -


Chronological Thread 
  • From: Ophir Setter <>
  • To:
  • Subject: Re: [cgal-discuss] Behavior of merging opp-direction curves -
  • Date: Thu, 2 Apr 2009 09:32:24 +0300
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=nsXF1ohF/NW2+MczAWio4O3oZJReqk/Z650EL8rxo5LcreVQw2Gj7UfsyLDYvtKJ/v 0/TLntXKRxUM195G4vv7sONSqCpJosAhvY4oGzD0nnt+CKjl+NvL2mSXz4h7aSNqobp8 zTuYP9+AWAbixe5+Pw7qw4BKUeKrEiQbHVfOo=

The basic arrangement class does not care about the "direction" of the curves. Even though that the two curves have different "directions" they consist the same group of points in the plane, and thus, only one edge is required to represent them in the DCEL. The basic concept for the arrangement class does not require a direction for the curves.

You can, however, use the Arrangement_with_history_2 class to get, for each edge, a mapping to all its inducing curves:
http://www.cgal.org/Manual/3.4/doc_html/cgal_manual/Arrangement_on_surface_2_ref/Class_Arrangement_with_history_2.html


On Wed, Apr 1, 2009 at 8:38 PM, Ben Supnik <> wrote:
Hi Y'all,

I am trying to figure out how opposite-direction, identical-supporting-line curves are merged with the arrangement_2 package.

- If I insert a curve and at least part of the curve is "on top of" (but opposite direction) an existing curve, what happens?  (I _think_ in this case the newly inserted curve is _not_ inserted for this section.

- If I merge two maps that contain opposite direction, overlapping curves, which "direction" is chosen to make the new sub-curve representing the overlapping region?

(This is the case that I have no idea about...I looked through sweep_line_2 and the overlay visitor, and it appears that the choice of which direction to take is deterministic, but the sweep code makes my head hurt.)

cheers
ben
--
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