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: Sun, 16 Jul 2017 23:59:14 -0400
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:nsNX6xFTM9oJOmjDRQe0/Z1GYnF86YWxBRYc798ds5kLTJ78o8ywAkXT6L1XgUPTWs2DsrQf2rWQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDiwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KODw38G/XhMJ+j79Vrgy9qBFk2YHYfJuYOeBicq/Bf94XQ3dKUMZLVyxGB4Oxd4wBAPAOPOZZqon2ukUArRykBQmjA+PvzCRIhnz33aw6zu8sFgLG3BYhH9IJtHTUq9r1ObwdUeCw1qbIzDHDY+lK1jf67YjFaxYsquyCU7J3dMre00gvFwXdg1qMpozqJTeV2v4Ks2iB4OptU/+khW0/qwxpvDSj2sMhhpPKi48V0FzI6zh1zYgvKdGlS0N3f9ipG4ZKuS6ALYt5WMYiTnlouCkkzr0Gvoa2fC0Qx5Qmwx7TcvyGfJOU7h76WuadPDR1iGx/dLKwgBay9kegyuniWcWuzFlKqS9FnsHNtnALyRPT9tCKRuVh8kqlwzqC1ADe5vtaLUwpm6fXMYMtz70umpYLtETMBC72mEH4jK+McUUk//Cl6+f9YrXnoZ+cM4h0ig7lP6Qhn8ywG+U4MgwUU2eH/uS80aXv/VflT7VSkv02jq7ZvYjGKsQUvKG5BxZZ3Zsi6xakEzimzc8YnWIcIVJeeBOHipDpNEvULPD5C/e/mVWsny1xy/DIJL2ySqnKe3PMmbOkcbdm4FNH0yIyy8pe7tRaEOIvOvX2D2r4pN3dRiM+KQOzxf3kCcQ1goAEWGWLBaCxP6bbsFvO7eUqdbrfLLQJsSrwfqB2r8XlimU0zAcQ

After several weeks I have another small question.

I use Arr_circle_segment_traits_2 with CGAL::Cartesian<CGAL::Exact_rational> taken from a CGAL example. If I understand correctly Arr_circle_segment_traits_2 must be used only with rational numbers (at least for circle centers). Is there any workaround or different similar kernel which allows to use real coordinates?

Thanks,
Maxim

2017-06-14 0:52 GMT-04:00 Maxim Torgonskiy <>:
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