Subject: CGAL users discussion list
List archive
- From: "Amit Pendharkar" <>
- To:
- Subject: [cgal-discuss] Sub-segments of intersecting segments
- Date: Fri, 3 Oct 2008 01:23:18 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=ck6jwOULhqC/nzBw6fDPGS9y4kg3aLixhZEiSz1qXnUWjHhHQVHWjO8Hl0O0RtDteC Fr4mC2KR4W63+/s/oY77pH5uUegt+plR0myEi40wVSeFX3e82A7k8LeJTm9brEcA+SMf 5M/EYXganaQ04nWuAz3bcJ+PiEpOIAwUn4q0M=
Hi All,
Of given n randomly placed segments in a plane how to find out all the sub-segments that are formed due to intersections? Two segments, if intersect, will give rise to four sub-segments.
E.g. a vector seg will contain the original segments and another vector sub_seg should contain all the sub-segments after processing.
A lame solution would be to check if every two segments intersect and if they do, replace them with four sub-segments and restart the checking.
Is there any better way? Though http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Sweep_line_2/Chapter_main.html looks useful, this is not I want.
I want to find out the sub-segments and not merely the intersection points.
Your inputs are appreciated.
Thanks & Regards,
Amit Pendharkar
Of given n randomly placed segments in a plane how to find out all the sub-segments that are formed due to intersections? Two segments, if intersect, will give rise to four sub-segments.
E.g. a vector seg will contain the original segments and another vector sub_seg should contain all the sub-segments after processing.
A lame solution would be to check if every two segments intersect and if they do, replace them with four sub-segments and restart the checking.
Is there any better way? Though http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Sweep_line_2/Chapter_main.html looks useful, this is not I want.
I want to find out the sub-segments and not merely the intersection points.
Your inputs are appreciated.
Thanks & Regards,
Amit Pendharkar
- [cgal-discuss] Sub-segments of intersecting segments, Amit Pendharkar, 10/03/2008
- Re: [cgal-discuss] Sub-segments of intersecting segments, Pierre Alliez, 10/03/2008
- Re: [cgal-discuss] Sub-segments of intersecting segments, efif, 10/03/2008
- Re: [cgal-discuss] Sub-segments of intersecting segments, Amit Pendharkar, 10/10/2008
- Re: [cgal-discuss] Sub-segments of intersecting segments, efif, 10/03/2008
- Re: [cgal-discuss] Sub-segments of intersecting segments, Pierre Alliez, 10/03/2008
Archive powered by MHonArc 2.6.16.