Subject: CGAL users discussion list
List archive
- From: Dinesh Shetty <>
- To:
- Subject: Re: [cgal-discuss] compile error
- Date: Thu, 03 May 2018 14:06:04 +0000
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:xdEWqRXXMXt/ljGcoh7IVdjQM2/V8LGtZVwlr6E/grcLSJyIuqrYbBaPt8tkgFKBZ4jH8fUM07OQ7/i7HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba98IRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W7YhMx/jqJVrhyiqRJi3YDbfJqYO+Bicq7HZ94WWXZNU8RXWidcAo28dYwPD+8ZMOhWron9oUUBrQC+BQKxGe3vyiFHhmPq3aw6zu8sFhzJ3A0mH90Qq3TUrM/5NKYTUeCu0KbF1jrDb/ZM1jf87IjEaAwuofaJXb9pd8fa1EchFwTAjlqKqIzlOSuY1uIXvGeA9OVgUfygh3Q7pAF2pzij3sYsio/ThoIU0F/I7yt5wJwzKNalS0B7ecapHIVMuyyeLYd7QcMvT3t2tCok1rEKo4O3cSoWxJkh2hXRceaIc5KS7RLmTOuRISl3hHZieL+ngha960mgyunlWsmt01ZGsjNJktfRun0PyxDf8MeHSvx6/keu3TaAyRrf5f1DIUAxjabbKpghzaAslpcLr0jPAiv7lF/1gaKWbEko5Pak5/j9brn7pJKQK5d4igTkPaQvnsy/D/44Mg8LX2WD5Ou81bvj8lPiQLVKlPE2k6jZsIvGKskAqa65BhVa0ocn6xqlEzim19EYkWEdLF1ZYBKHk5TpO1bWLf/kAvewmVCsnC52yPDHJb3uHojNLmPYkLr6ZrZ860tcyBIpwtxF5pJUDKsBIPPpVUPrutzYFExxDgqv3uyyCMlhzphMHiWUE6qBOeXTt0WJ76QhOa6XdYoNsXH8LfYioPXhhHt8lV4GdrSyxsgrbyWzEf1iZkmYenHxmcwpEGEQvwN4Qva5pkeFVGt/ZnC/RKJ03TE2FJ63RdPPR4agm7zH3SagFbVZY2lHDhaHFnK+JNbMYOsFdC/HepwpqTcDT7X0E9ZwhyHrjxfzzv9cFsSR/yQZsZz5090svr/ckBgz8Xp/CMHPijjRHVExpXsBQnoN5I46uVZ0kw7R3q1xgvgeHttWtasQD1UKcKXExuk/MOjcHwLMetDTFgSjS9SiRCgyFpc/moBWJUl6HNqmg1bI2C/4W7I=
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 typedefstypedef 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.