Subject: CGAL users discussion list
List archive
- From: Morteza Manavi <>
- To:
- Subject: Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?
- Date: Sun, 26 Aug 2018 13:45:03 +0430
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:HvphOBC/WQiAGdgTUM8GUyQJP3N1i/DPJgcQr6AfoPdwSPv5psbcNUDSrc9gkEXOFd2Cra4c1KyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUhjexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoIODA5/2PXhMJ+j6xVvQyvqABkzoHOfI2YLuBzcr/Bcd4YQ2dKQ8ZfVzZGAoO5d4YBCO0BPfxEr4bjploBtwa1Cw62C+Pp0DBImH721rA93uQkFgHGxhAgEMwPsXvOsNn5KLoeXf2owKTTwjXDaulZ2Tb56ITSbh8hpvSMUKt2fMHMykcvDxvIgkuMpYHhJT+Y1eQAv3KG4+dhV++jkW8qpgF3rzOy3MkjkJPJiZgQyl3c9SV23oI1JdqgRU5+e9GkEZ9QuzieN4t4X88uWm9otSc6x7Ectp67ey8KyJsjxxHBcfCIb4+I4hf7WOaQJzd3mm5ldaqhixqu9UWs0O7xW8mu3FpXrydIkMPAu3EN2hDL78iIUPp9/kOv2TaV0ADT7/lJIUUzlarBN54u3L8xmYAPvUjfAyP6hVj6gbSZdkUh4Oeo6uDnbq/6qZ+bMo94khv+Pbg2msyjHeQ4NRADUHSU+eum0L3v5FD2QLRRjvIqj6nZq4vaKN8Apq+5Bg9Vypws5wy+DzegytQYnGMIIEhLeBKd3MDVPATFL/n8SPu+mF+xiyxDxvbcP7SnDI+eAGLEleLEeqxh5lxVgC86y9lB5toAD7YbPP/hUxep7YWBJhA8Og2whe3gDYMuhcslRWuTD/rBY+vpuliS67d3erjeVMouoD/4bsMdybvrhH49l0UaePDwj5QSYXG8WP9hJhfAOCa+spI6CW4P+zEGYqnyklTbCGxcYn+zW+Q34TRpUNv7X7eGfZikhfm65An+HpBSYTobWFWFEHOtc4vdHvlSNWSdJchuljFCXr+kGdcs
Thank you Efi,
But I don't want to delete CGAL::Dual because I need to construct a dual graph representation of the arrangement, and on the other hand I need to have curve handler that it's possible with use of Arrangement_with_history_2 class.
Apparently the Dual class does not accept
Arrangement_with_history_2 as input and according to your answer I can't directly convert
Arrangement_with_history_2 to Arrangement_2. I think, I must write my own dual graph class that accept
Arrangement_with_history_2 as input.
Morteza.
Hi Morteza,If you really need to convert Arrangement_with_history_2 to Arrangement_2, then you would need to reconstruct Arrangement_2, but conceptually, everything you can do with Arrangement_2 you can also do with Arrangement_with_history_2.Is it possible that you simply forgot to include the header that contains the definition of CGAL::Dual, namely, <CGAL/graph_traits_Dual_Arrangement_2.h> ?Anyway, if you still have a problem, please paste a complete minimal program.Efi____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/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;
- [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Morteza Manavi, 08/25/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Efi Fogel, 08/25/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Morteza Manavi, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Efi Fogel, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Morteza Manavi, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Efi Fogel, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Morteza Manavi, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Efi Fogel, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Morteza Manavi, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Efi Fogel, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Sebastien Loriot (GeometryFactory), 08/28/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Sebastien Loriot (GeometryFactory), 08/28/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Morteza Manavi, 08/28/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Morteza Manavi, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Efi Fogel, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Morteza Manavi, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Efi Fogel, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Morteza Manavi, 08/26/2018
- Re: [cgal-discuss] How to convert Arrangement_with_history_2 to Arrangement_2?, Efi Fogel, 08/25/2018
Archive powered by MHonArc 2.6.18.