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: Efi Fogel <>
  • To:
  • Subject: Re: [cgal-discuss] 2D arrangements comparison
  • Date: Mon, 17 Jul 2017 10:49:51 +0300
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:o6h6JhIdsIqVIXQI1tmcpTZWNBhigK39O0sv0rFitYgRKPjxwZ3uMQTl6Ol3ixeRBMOAuq0C07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9ZDeZwdFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhyUJNzA5/m/ZidF+grxHrx+6vRNz35TZbZuJOPZifK7Qe84RS2pbXsZWUixMGoyyb4UOD+EcPehYqIb9qEUKrRCjAgSjGu3vyj5Ghn/x0q01zeAhHBrJ3AwlBd0OsXDUoM/pO6cVVOC41a/FxijNYfNR3Dfy8onIchY5rP6QUrJ/a87RxVMoFwPfgVWdr5HuMTCN1ukVrWSX8+5tWfishmMnsQ19vyajy8Q2hoXUhY8Z11bJ/jhjzokvP923Ukt7bMakEJROsyGaMJN7QsY4TGFpvCY207MHuYSncCQTxpQr2h3SZ+Gdf4iH5RLjU+mRITNmi35/ZL2/gBOy/VChyu36SMa0zE5HojRZntTIrHwA1Bze5tKaRvdj/UqtwyuD2gPO5u1cJEA7j6vbK5ovwr4qkZoTtFzOETH4mEX3gq+WcUok9fas6+n8bbXmo4WTN45wig3kLqsuncm/DfwiMgcSR2ib5fi81Lr78ELlT7VFlPk2nrDEv5DbPsQUurO5AxRO0os48Ba+DzKm0MwCknUdLVJFfgiHj4nzNF3ULvD4F6T3v1P5mzhiw7XKP6bqH47WBnnFirboO7hnuGBGzw9m4N5er7xTBbwFaKb+VE7/s9PVCjc2NgW1x6DsD9ArhdBWYn6GHqLMaPCailSP/O96e+Q=

First, you can use Exact_predicates_exact_constructions_kerner. 

The whole idea behind the Arr_circle_segment_traits_2 traits class template is that you can use a rational kernel and still be able to construct an arrangement of circular arcs. You can any kernel you want as long as it supports exact rational arithmetic. 

If you want to use real coordinates, you may also try the algebraic traits provided by the package, or even the conic traits. 


On Jul 17, 2017 06:59, "Maxim Torgonskiy" <> wrote:
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