Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?

Subject: CGAL users discussion list

List archive

[cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?


Chronological Thread 
  • From: Morteza Manavi <>
  • To:
  • Subject: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?
  • Date: Sat, 25 Aug 2018 17:29:35 +0430
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:h8IRPB+C+IREFv9uRHKM819IXTAuvvDOBiVQ1KB40ekcTK2v8tzYMVDF4r011RmVBdqds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+55/ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRxDohikJNDA37X/ZhdBrga1BvB6svQZyz5LIbIyXMvd1Y6PTfckdRWpERstfUCtBApmgb4QRDusOJ/tToY7nqFsItxS+GwisD/7oxz9NgX/2x7E63PogEA7cwAAsA88CvGnJoNjuO6cSVPq6zKjMzTnZc/xW3jL95ZHOfxs8ov+MRap9fdTNxUQrDQ/IjVWdpZb7Mz+J1ekBqXWX4uhgWO+plmUpsRt+oiK1yccpkoTJhpwaylTD9ShhxYY6P9y4SEpibd6gEptcqjiWN4VrTs4gQ2xkoik6yroBuZ60eCgF1o4ryALYa/yCa4SI4xTjW/iNITpgmn5pZLayiwyx/EWg0OHwSNW43VVQoiZYkNTBtmgB1xnJ5ciGTvt98F2h2TGK1w3L7+FEJlo0lbbFJJ8g2LE8ioYfvVneEiPrg0j2g6qWeV8l+uis8ejofrLmppqEO49ulg7+KrgumtC4AekgLgcOUHKU+eCl2LL+/E35W6lFjuAtkqnCq53aPsQapquhAwBPyIoj6hC/Dy2n0NsCh3UHIkhFK1q7iN3iNFjKZfz5FvyimE+EkTFxxvmAMKeyLI/KKy3ml639cKR0o2tVzgMtzJgL4pVOFrwTKaqrAxaonNPdBx49dQezxrC0W51GyooCVDfXUeeiO6TIvArQv7N9E6y3fIYQ/Q3FBb0g7v/qg2U+nAZEL6as1JoTLnu/G6Y/ehnLUT/Xmt4EVFwykE8mVuWz0Q+NVDdSYzC5WKduvmhmWrLjNp/KQ8WWuJLE3Cq/GccINGVPC1TJFXWxMovdBKpKZyWVLcts1DcDUOr5Rg==

Hi, I want to use Dual class to construct a dual graph of my arrangement, but I get the compile error :
C2079: 'dual' uses undefined class 'CGAL::Dual<Arr_with_hist_2>'
and I think it's for Arrangement_with_history_2 that I use to define the arrangement in the code. Now I need to convert Arr_with_hist_2 to Arrangement_2 and I don't know how to do this?
my CGAL type definition :
typedef CGAL::Cartesian<CGAL::Exact_rational>                   Kernel;
typedef Kernel::Circle_2                                        Circle_2;
typedef Kernel::Segment_2                                       Segment_2;

typedef CGAL::Arr_circle_segment_traits_2<Kernel>         Circle_Segment_traits_2;
typedef std::string                                       Curve_Name;
typedef CGAL::Arr_consolidated_curve_data_traits_2
                   <Circle_Segment_traits_2, Curve_Name>  Traits_2;
typedef Traits_2::Point_2                                 TPoint_2;
typedef Traits_2::Curve_2                                 Curve_2;
typedef Traits_2::CoordNT                                 CoordNT;

typedef CGAL::Arr_face_extended_dcel<Traits_2 , unsigned int>   Dcel ;
typedef CGAL::Arrangement_with_history_2<Traits_2, Dcel>        Arr_with_hist_2;
typedef CGAL::Dual<Arr_with_hist_2>                             Dual_arrangement;
typedef CGAL::Arr_face_index_map<Arr_with_hist_2>               Face_index_map;



Archive powered by MHonArc 2.6.18.

Top of Page