Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] cannot find an arrangement

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] cannot find an arrangement


Chronological Thread 
  • From: Efi Fogel <>
  • To:
  • Subject: Re: [cgal-discuss] cannot find an arrangement
  • Date: Thu, 19 Dec 2013 19:30:15 +0200

I think you should read a bit before you start coding...

#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Arr_segment_traits_2.h>
#include <CGAL/Arrangement_2.h>

typedef CGAL::Exact_predicates_exact_constructions_kernel   Kernel;
typedef CGAL::Arr_segment_traits_2<Kernel>                  Traits_2;
typedef CGAL::Arrangement_2<Traits_2>                       Arrangement_2;



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




On Thu, Dec 19, 2013 at 7:17 PM, hasadi <> wrote:
Thanks for your answer, I am newbie for using CGAL library, so I tried just to change the example provided in the source code in order to evaluate whether I can use it.
I would appreciate if you could please let me know how I can  use an exact-predicate exact-construction kernel.

Thanks in advance for your help.


On Thu, Dec 19, 2013 at 8:38 PM, Efi Fogel [via cgal-discuss] <[hidden email]> wrote:
You must use an exact-predicate exact-construction kernel.
Are you?

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




On Thu, Dec 19, 2013 at 2:50 PM, hasadi <[hidden email]> wrote:
Hi,

I try to use Arrangement part of the code. It seems to work properly,
however, for the the following example it cannot find correct arrangement.

here are the data which I add to the CGAL
example/arrangement_on_surface/face_extenstion.cpp

  Segment_2      s_1 (Point_2(1.5375, 0.83125), Point_2(1.575, 0.6625));
  Segment_2      s_2 (Point_2(1.5375, 0.83125), Point_2(1.2875, 0.70625));
  Segment_2      s_3 (Point_2(1.575, 0.6625), Point_2(1.2875, 0.70625));
  Segment_2      s_4 (Point_2(1.43526, <a href=""tel:0.780128"" value="+49780128" target="_blank">0.780128), Point_2(1.45,0.73));

  Segment_2      s_5 (Point_2(1.45,0.73), Point_2(1.47624, 0.677529));
  Segment_2      s_6 (Point_2(1.30709, <a href=""tel:0.716047"" value="+49716047" target="_blank">0.716047), Point_2(1.3011, 0.70418));


the fist three segment are the coordinate of a triangle, and the rest are
the intersections with triangle boundaries.
below image show the position of the segments.

it worth to mention that all of the intersection also found by CGAL library.

<http://cgal-discuss.949826.n4.nabble.com/file/n4658571/drawing.png>

any help would be appreciated.

Thanks,
Hosein



--
View this message in context: http://cgal-discuss.949826.n4.nabble.com/cannot-find-an-arrangement-tp4658571.html
Sent from the cgal-discuss mailing list archive at Nabble.com.

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss






If you reply to this email, your message will be added to the discussion below:
http://cgal-discuss.949826.n4.nabble.com/cannot-find-an-arrangement-tp4658571p4658577.html
To unsubscribe from cannot find an arrangement, click here.
NAML



View this message in context: Re: cannot find an arrangement

Sent from the cgal-discuss mailing list archive at Nabble.com.




Archive powered by MHonArc 2.6.18.

Top of Page