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 16:56:41 +0430
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:oZot7BcV5U52AdXLInZOcc3YlGMj4u6mDksu8pMizoh2WeGdxcu4Yx7h7PlgxGXEQZ/co6odzbaO7Oa4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahY75+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM2/2/Xhc5wgqxVoxyvugJxzJLPbYGQKPZzZLnQcc8GSWdDWMtaSixPApm7b4sKF+cPOuFYr5Php1QQrBqxHxSnCuT1xT9OnHD2w6w62PkmHAHD2wwgBc4Ov2rVrdrvKKseTf25wLTVwTjYYPNW3C3y6InMchw7vf6MWrdwfNPXxEIyFA3Flk2dpZL5Mz6RzOgAsGiW4/B+We6ziGMrsRx9rzuzysoql4LHnJgaykre+iV82Is1JcO3SEp8YdO8FZtfrSCaN49vTsMmQWFkpT82yrMbtZO4YCQG0psnxxnYa/yId4iH/AjvW/qWITd9nH5lebS/iAiu8UW41OHwSs253ExJoydFiNXAqGwB2h/J5sSaSfZx4l+t2TOV2ADS7uFEL1o0la3eK5M5x74wkYATsVjdES73gkr6kLOaelg59uS18OnnbbDmqYWdN49wkA3xLqMumsmnDeQiLgcOR3Sb+fi71LD74UL5T69FjvkvnqbEsZDaPtgUprOiAw9OyYsj8Ba+DzK+0NsCh3UHLVRFeAiGj4fzIV3OLur4Xr+DhAGnnz5vgvzHJbb8GY7lL37Zkb6nc6wuxVRbzV8WyspD6oBdQpQIJvvtWwelsdvCEhIrOlTsmr++INp434IaH2mIB/nKY+vprVaU67d3cKG3b4gPtWOlcql317vVlXY83GQlU+ys1JoTZmq/G60/cUqcaHvoxNwGFDVT51ZsfKnRkFSHFAVrSTOqRatlv2M0DYunCcHIQYX/2OXcjhf+JYVfYyV9Mn7JEXrscN/aCfIFaSbXJs041zJdBeDnRIgm2hWj8gT9zug/Iw==
I attach
a small program that reproduces the compilation error.
Please look at the "
graph_traits_Dual_Arrangement_2.h " file, you will find that the CGAL::Arrangement_2 is used for calculations.
Maybe error is for that?
Please attach a small program that reproduces the compilation error.I was, by the way, able to compile the lines of code you have posted after adding the appropriate include statements.____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/I looked, the header file was included.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> ?____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/Exactly, compiler give error:C2079: 'dual' uses undefined class 'CGAL::Dual<Arr_with_hist_2>'C2440: 'initializing': cannot convert from 'Arr_with_hist_2' to 'int'in line :Dual_arrangement dual(arr);of my code.
(Notice that the error is not occur at runtime)What makes you think that the Dual class does not accept Arrangement_with_history_2?____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/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;
Attachment:
dual_graph.rar
Description: Binary data
- [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.