Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] 2D arrangements comparison

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] 2D arrangements comparison


Chronological Thread 
  • From: Maxim Torgonskiy <>
  • To:
  • Subject: Re: [cgal-discuss] 2D arrangements comparison
  • Date: Wed, 14 Jun 2017 00:52:11 -0400
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:FdR5MBBpeWSkLvUMArVXUyQJP3N1i/DPJgcQr6AfoPdwSPv/p8bcNUDSrc9gkEXOFd2CrakV1KyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fdbghMhjexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoINTA5/mHZhMJzkaxVvg6uqgdlzILIeoyYLuZycr/fcN4cWGFPXtxRVytEAo6kaIUAFeUAPeddr4LguVUOqgG+BQarBOPp0T9IhX723K0n2OkmEgHGxg0gH9UKsHTTo9X4L6gSUeWvw6nJyTXPde9Z2TD46IXRdB0qvP+CXbV1ccXLyEkvERvIgUmfqYP/OzOZzOMNs3KU7+dmSOmhiHYnphlvrjSzwsogkIrEi4IPxlzZ9Ch13Zw5KcC7RUJnZ9OvDYFeuDuAN4RsR8MvW2Fotzg+yr0BoZO7eTIFyJUjxxLGa/2GfZSE7gvtVOqMIjp0mGhpeL24hxa1/kigzvPzWtOo31ZNqypJitjMtnYT2BzP8sWLVOdx80O71TuM1w3f8PxILEEpmabBNpIswaI8moIWsUvZHy/2nEv2jLWRdkUh4uWo6P7nYrThpp+YMI90hRrzMqsrmsOlAOQ4NhICUHSc+eS5zLHj51H2QK1Wjv0qlanUqIzVJcsBqa69GgNaz4cj6w2jADe7y9QYhmIKLElFeRKCl4jmIUvCIPH+DfelglSjii1nx/7cPu6pPpKYJXfKlPLtfK129lVH4As119FWoZxOWZ8bJ/emf0bhtdmQMhgjPAuy2OXmGZ0p1ZkfXmaIDYeWNarTtRmD4ed5cLrEX5McpDuoc6tt3PXpl3JswVI=

It worked for me with Arr_circle_segment_traits_2, Arr_polycurve_traits_2 and Arrangement_with_history_2.
I put two polycurves into two different arrangements, make overlay and iterate the segments of the resulting arrangement. With arrangement with history I can detect which of two polycurves (or whether both of them) generates a segment. It's sufficient for my intersection type detection.

Thanks,
Maxim

2017-06-08 10:44 GMT-04:00 Maxim Torgonskiy <>:
Thanks Efi, I'll check it.

2017-06-08 2:21 GMT-04:00 Efi Fogel <>:
I suggest that you construct an arrangement-with-history and traverse its cells.

   ____  _        ____             _
  /_____/_) o    /__________  __  //
 (____ (   (    (    (_/ (_/-(-'_(/
                         _/



On 7 June 2017 at 17:25, Maxim Torgonskiy <> wrote:
Hello,

I need to verify whether two 2D curves 1) don't intersect, or 2) intersect, or 3) one contains another. The curves contain straight line segments and arc segments. I've found an overlay function in Arrangement_2 [1] which cover all the three cases. The problem is to verify whether the output arrangement is equal to one of the input arrangements. Is there any method to do the check? I've found only [2] equality operator in the code but it seems that it is not what I'm looking for. 

An example of input curves : c1 = (-1,0) -> (0,0) -> (0,1) -> (0,2) -> (2,1) ; c2 = (0,0.5) -> (0,1.5)

Thanks,
Maxim







Archive powered by MHonArc 2.6.18.

Top of Page