Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] To Find set of lines intersecting at a given point CGAL

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] To Find set of lines intersecting at a given point CGAL


Chronological Thread 
  • From: Siddharth Gupta <>
  • To:
  • Subject: Re: [cgal-discuss] To Find set of lines intersecting at a given point CGAL
  • Date: Thu, 28 Apr 2016 23:15:34 -0700
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:aAkBwBYO3yObraVbiqwBFTP/LSx+4OfEezUN459isYplN5qZpcizbnLW6fgltlLVR4KTs6sC0LqG9fC9EjxRqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh7D0q8CYM1QArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIYTGZn9Kq83RLgdADU9OH0u/+XqswPCRE2B/CgySGITxyFJDwTF5QvmXt/erzPmv6Ip1zSCIcTtTLw4WT2486cyEDfnjS4GM3gy92SB2Z84t75SvB/0/083+IXTeozAbPc=

Hi

I did in a bit different manner. I computed all the intersection points and checked it against each segment to group the segments. I didn't get why the function which did this was there in version 3.x but got it removed from later versions.

I have attached my code for the same.
 

On Thu, Apr 28, 2016 at 7:27 PM, Юрий Дынников <> wrote:
Hello, Siddharth


Your task could be achieved by following: 
1. Prepare all segments, give them IDs (you should use Arr_curve_data_traits_2 for that, but I had problem with it)
2. compute_subcurves will give you subsegments, each subsegment should have ID of parent segment
3. For each subsegment you can get its start and end vertices -> you can create cross-table of vertices and parent segments
4. Analyze, which segments intersect in each point

If you will get it working, please share your code with me, as I haven't yet understood how to implement such thing with Arr_curve_data_traits_2 (the question was previously on the list, but I didn't find time to make minimal example yet) 



пт, 29 апр. 2016 г. в 2:12, Siddharth Gupta <>:
In newer version of CGAL, given a set of line segments, we can't find out the set of lines interesting at a point. I am checking them pairwise using do_intersect() but it's very slow. Can someone suggest me a better way?

My goal is to to find out all pairs of intersecting segments in a give set of line segments.


--
Siddharth Gupta




--
Siddharth Gupta

Attachment: Screen Shot 2016-04-28 at 11.15.09 PM.png
Description: PNG image




Archive powered by MHonArc 2.6.18.

Top of Page