Subject: CGAL users discussion list
List archive
- From: Юрий Дынников <>
- To:
- Subject: Re: [cgal-discuss] To Find set of lines intersecting at a given point CGAL
- Date: Fri, 29 Apr 2016 02:27:29 +0000
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:lbEQ6hAT8wbLPfsuz84YUyQJP3N1i/DPJgcQr6AfoPdwSP74rsbcNUDSrc9gkEXOFd2CrakU26yG7uu+AyQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTnkbDvsMOJKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FppIZ8VvDxcK08CLBZFz87KHsd5cvxtBCFQxHcyGEbVzD/ivOhS+Es7BETt5Db+n//sfB61CSXJ+X5SLk1XXKp6KI9G0ygszsOKzNsqDKfscd3lq8O+B8=
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)
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
- [cgal-discuss] To Find set of lines intersecting at a given point CGAL, Siddharth Gupta, 04/29/2016
- Re: [cgal-discuss] To Find set of lines intersecting at a given point CGAL, Юрий Дынников, 04/29/2016
- Re: [cgal-discuss] To Find set of lines intersecting at a given point CGAL, Siddharth Gupta, 04/29/2016
- Re: [cgal-discuss] To Find set of lines intersecting at a given point CGAL, Юрий Дынников, 04/29/2016
Archive powered by MHonArc 2.6.18.