Subject: CGAL users discussion list
List archive
- From: Mael Rouxel-Labbé <>
- To:
- Subject: Re: [cgal-discuss] compile error
- Date: Thu, 3 May 2018 15:26:05 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:MlTntxWzIQPxURgEERw5P6LTTl3V8LGtZVwlr6E/grcLSJyIuqrYbRCDt8tkgFKBZ4jH8fUM07OQ7/i7HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba98IRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W/KlMJwgqJVrhGvqRNxzIHbYp2aOeFkca/BZ94XX3ZNU8hTWiFHH4iyb5EPD+0EPetAqIfyvUUBrR+mCgewA+Pv1zBJiWHy3aEj1eouCxrJ0xc6GNkTt3nUqc/6O7kWUeyv1qnIyijDbvxI1jf58oTIdgouruqXUr1uasfRxlcgFwTAjlqOtYzlJTOU1uoXvGeH8+pgUvivim49pw5tpTivw94hh4/UjYwbzVDE8D92wIczJdCgTk50e8WrH4BUty6ELYd5XsQiQ2RwtCY7zL0Go5+7czIQxJQp3R7SbeGMfYuQ4h/7V+ucIy10iXZmdb6lmhq/8ketxvfhWsS7zVpGtiRIn9vWunwQ1RHe5NKLRuVg8ku9wzqDyR7f5+NCLEspj6TUMYQhzaQ1lpcLsUTMACv2mELugaKSbEkk/++o5ur9brXjvJCcNot0hhj5MqQzhsyzG+M4MhYOX2SB/+SzyqHj8VX4QLVMkPI2jrHUvZPYKMgBoqO0ABVZ3psg5huwFTuqzdsVkWQfIFJAYh2HjozpO1/UIPD/CPeym1Gsny11yPDCJLHhGJLNLmXMkbj/ebZx8UpcxxAowt9E+Z1ZEb4BL+z0Wk/0qtPYEgU5Mgy6w+n9FNp9yoQeWXiPA6ODLKzStlqI6vo1I+aQfI8VpCr9K/896vHygn82g1sdcbC00psWc3C3AulmI16CYXf3mdcAEWIKvhIkQ+DwiV2CVyRTZ3eoUK4m6DE7EtHuMIHYW4r4gKCdxDzpWdpNd2VeAxaNF23pfsOKQbAXeSeKK4hglDIDErOuQotk2RC1vxLh0OlbKb/f9SQc8J7iz9No/Pb7lBco9DUyAd7O/XuKSjRRl24McAUxwbBypQlZw12JUOAshvVVEZpJ4O5ZXwN8MZfWxeFSBN31Xw/dZMaHQV26Rc+3Rzo2S4RikJc1f09hFoD63Vj41C2wDupNzu3ZNNkP6qvZmkPJCYN4wnfC2rMmigN/EMRCMmirmrRu+QHYG4nTggOSkKP4Lf1Ajh6Iz3+KyC+1hG8dSBR5C/yXUn0YY0bKt8X370jeSKW/T78gN1kZkJPQGu5xctTsyG5+arLjNdDZOT7jyiG1Ak3Ow7qNaM/tZnlb2zvdTk4Jj1JL8A==
This is unrelated to your problem with "_with_info" classes,
though. Looking at your constrained Delaunay triangulation tag, I assume that you are using an exact constructions kernel, which you cannot do here. You should use an inexact construction kernel, such as 'CGAL::Exact_predicates_inexact_constructions_kernel'. Note that this also means that you cannot use the tag
"Exact_intersections" for your constrained triangulation either
(but you can use the exact predicates tag if you use EPICK). On 03/05/2018 13:53, Dinesh Shetty
wrote:
Still does not work. Here is the updated typedefs
typedef CGAL::Triangulation_vertex_base_with_info_2<std::pair< std::pair<int, int>, std::pair<int, IdType> >, Kernel > Vb; typedef CGAL::Delaunay_mesh_vertex_base_2<Kernel, Vb> Vertex_base; typedef CGAL::Constrained_Delaunay_triangulation_face_base_2<Kernel> Fb; typedef CGAL::Delaunay_mesh_face_base_2< Kernel, Fb > Face_base; typedef CGAL::Exact_intersections_tag Itag; typedef CGAL::Triangulation_data_structure_2< Vertex_base, Face_base > Triangulation_data; typedef CGAL::Constrained_Delaunay_triangulation_2< Kernel, Triangulation_data, Itag > CDTriangulation; typedef CGAL::Constrained_triangulation_plus_2<CDTriangulation> CDTriangulationPlus; typedef CGAL::Delaunay_mesh_size_criteria_2< CDTriangulationPlus > Criteria; typedef CGAL::Delaunay_mesher_2< CDTriangulationPlus, Criteria > Mesher_Base; typedef CDTriangulationPlus::Vertex_handle Vertex_handle; typedef std::vector< Vertex_handle > Vertex_handles; typedef CDTriangulationPlus::Face_handle Face_handle; On Thu, May 3, 2018 at 4:50 AM, Mael
Rouxel-Labbé <>
wrote:
This is not the correct approach. Please use the solution that was provided to you back then. On 02/05/2018 21:59, Florian Prud'homme wrote: > Hello , > > I remember I have a problem a bit similar 6 months ago . I created a new > file for this (in order to make it work with "data info" and "constrained" > triangulation) : > > >> /* >> * Delaunay_mesh_vertex_base_with_info_2.h >> * >> * Created on: Nov 23, 2017 >> * Author: florian >> */ >> #ifndef DELAUNAY_MESH_VERTEX_BASE_WITH_INFO_2_H_ >> #define DELAUNAY_MESH_VERTEX_BASE_WITH_INFO_2_H_ >> #include <CGAL/Triangulation_vertex_base_2.h> >> namespace CGAL { >> template<typename Info_, typename GT, typename Vb = >> Triangulation_vertex_base_2<GT> > >> class Delaunay_mesh_vertex_base_with_info_2: public Vb { >> Info_ _info; >> public: >> typedef typename GT::FT FT; >> typedef typename Vb::Face_handle Face_handle; >> typedef typename Vb::Point Point; >> typedef Info_ Info; >> template<typename TDS2> >> struct Rebind_TDS { >> typedef typename Vb::template Rebind_TDS<TDS2>::Other Vb2; >> typedef Delaunay_mesh_vertex_base_with_info_2<Info, GT, Vb2> > Other; >> }; >> protected: >> FT sizing_info_; >> public: >> Delaunay_mesh_vertex_base_with_info_2() : >> Vb(), sizing_info_(0.) { >> } >> Delaunay_mesh_vertex_base_with_info_2(const Point & p) : >> Vb(p), sizing_info_(0.) { >> } >> Delaunay_mesh_vertex_base_with_info_2(const Point & p, Face_handle c) > : >> Vb(p, c), sizing_info_(0.) { >> } >> Delaunay_mesh_vertex_base_with_info_2(Face_handle c) : >> Vb(c), sizing_info_(0.) { >> } >> void set_sizing_info(const FT& s) { >> sizing_info_ = s; >> } >> const FT& sizing_info() const { >> return sizing_info_; >> } >> const Info& info() const { >> return _info; >> } >> Info& info() { >> return _info; >> } >> }; >> } // namespace CGAL >> #endif /* DELAUNAY_MESH_VERTEX_BASE_WITH_INFO_2_H_ */ > > > > > -- > Sent from: http://cgal-discuss.949826.n4.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 |
- [cgal-discuss] compile error, Dinesh Shetty, 05/02/2018
- Re: [cgal-discuss] compile error, Florian Prud'homme, 05/02/2018
- Re: [cgal-discuss] compile error, Mael Rouxel-Labbé, 05/03/2018
- Re: [cgal-discuss] compile error, Dinesh Shetty, 05/03/2018
- Re: [cgal-discuss] compile error, Mael Rouxel-Labbé, 05/03/2018
- Re: [cgal-discuss] compile error, Dinesh Shetty, 05/03/2018
- Re: [cgal-discuss] compile error, Mael Rouxel-Labbé, 05/03/2018
- Re: [cgal-discuss] compile error, Dinesh Shetty, 05/03/2018
- Re: [cgal-discuss] compile error, Mael Rouxel-Labbé, 05/03/2018
- Message not available
- Re: [cgal-discuss] compile error, Dinesh Shetty, 05/02/2018
- Re: [cgal-discuss] compile error, Florian Prud'homme, 05/02/2018
- Re: [cgal-discuss] compile error, Mael Rouxel-Labbé, 05/03/2018
Archive powered by MHonArc 2.6.18.