Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] compile error

Subject: CGAL users discussion list

List archive

[cgal-discuss] compile error


Chronological Thread 
  • From: Dinesh Shetty <>
  • To:
  • Subject: [cgal-discuss] compile error
  • Date: Wed, 2 May 2018 14:49:56 -0500
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:+CgwDhLBfbm5o7IzqtmcpTZWNBhigK39O0sv0rFitYgRK//xwZ3uMQTl6Ol3ixeRBMOHs6kC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwtFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhicJOTA67W/ZlNB/gblBrx69vRFy2ZLYbJ2XOfd4Y6jTfckaRW1EXstJWSJBA4W8YJUUD+oBIO1Wson9qEUSrRuiBQinGeTixSJJhn/ww6I6yOQhHRvH3AwhBNIBrG/ZrNrwNKgIUOC1yLPEwinEb/NTwDrw7pXDfBM5ofyUQ758bc7cxVMsGg7FlFmct5HpMjKP2ugQsWWW6+xtXv+1hWE9sQF+uD2vy98siobXgoIVzUjJ9SBjz4Y0Id20UVd7YcK4HJdJuSGWKol7T8c4T2FnvyY6zbIGuZqlcyQQ1JsnwBvfZ+SGc4iO/B3jSP6cLSlkiH9hYr6yhBa//VK+xuHhV8S4yktGoyhBn9XUs3ACzR3T6syJSvtn+Ueh3C6C2B3S6uFCP080jqrbJ4Qgwr4xjZocrV/OHiDzmErsja+Wcl8o9fSv6+TiernmvIOTN5doigHiNaQjgtCwAesiPQgKRmSU5OW81Kb/8k3kW7VKleY7krLZsZDfPcQUvLS1Aw5T0oY56hawFS2q0NoCnSpPEFUQcx2Oi83lOkrFPevjJfa5mVWl1jlxlN7cObi0LpTLI2PD2IzhcKph+gYIxAs1wMtfoZNVEbopL/f6W0u3v9vdWExqezeoyvrqXY0unrgVXniCV/fAYfHi9GSQ7+dqGNGiIYocuTLzMf8gvqe8gnowmFtbdq6sj8JONCKIW89+KkDcWkLCx88bGD5T7AU7Re3uzlaFVGwLPivgb+cH/jg+TbmeI8LDS4Sq2uLT2S66GthPejgDBAnTQDHncIKLX/pKYyWXcJds

#include<CGAL/Exact_predicates_exact_constructions_kernel.h>

typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;

typedef CGAL::Delaunay_mesh_vertex_base_2<Kernel> Vb;

typedef CGAL::Triangulation_vertex_base_with_info_2<std::pair< std::pair<int, int>, std::pair<int, std::string> >, Kernel, Vb > Vertex_base;

typedef CGAL::Delaunay_mesh_face_base_2< Kernel > Face_base;

//typedef CGAL::Triangulation_face_base_with_info_2<std::pair<int,int>, Kernel> Face_base; //does not work with constrained triangulation?

typedef CGAL::Exact_predicates_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;

typedef CDTriangulationPlus::Point Point;

typedef CGAL::Polygon_2<Kernel> Polygon2D;


std::list<Point> seed;



CGAL::refine_Delaunay_mesh_2(cdtp, seed.begin(), seed.end(), Criteria( cnfg_.MaxTriangleSkewness(), cnfg_.MaxTriangleEdgeLength()*2.0));









CGAL::lloyd_optimize_mesh_2(cdtp ,CGAL::parameters::max_iteration_number = MeshOptItr);



Leads to following compile error

3>D:\PE\PE_Software\3rdParty\CGAL\CGAL-4.12\include\CGAL/number_utils.h(104): error C2064: term does not evaluate to a function taking 1 arguments


3> D:\PE\PE_Software\3rdParty\CGAL\CGAL-4.12\include\CGAL/Mesh_2/Refine_edges_with_clusters.h(286) : see reference to function template instantiation 'CGAL::Null_functor::result_type CGAL::sqrt<CGAL::Lazy_exact_nt<ET_>>(const AS &)' being compiled


3> with


3> [


3> ET_=CGAL::Gmpq,


3> AS=CGAL::Lazy_exact_nt<CGAL::Gmpq>


3> ]


3> D:\PE\PE_Software\3rdParty\CGAL\CGAL-4.12\include\CGAL/Mesh_2/Refine_edges_with_clusters.h(249) : while compiling class template member function 'CGAL::Point_2<R_> CGAL::Mesh_2::Refine_edges_base_with_clusters<Tr,Is_locally_conform>::split_cluster_point(CGAL::internal::CC_iterator<DSC,Const>,CGAL::internal::CC_iterator<DSC,Const>,const CGAL::Mesh_2::Clusters<Tr>::Cluster &) const'


3> with


3> [


3> R_=CGAL::Epeck,


3> Tr=FeMDefs::CDTriangulationPlus,


3> Is_locally_conform=CGAL::Mesh_2::Is_locally_conforming_Gabriel<FeMDefs::CDTriangulationPlus>,


3> DSC=CGAL::Compact_container<CGAL::Triangulation_vertex_base_with_info_2<std::pair<std::pair<int,int>,std::pair<int,IdType>>,Kernel,CGAL::Delaunay_mesh_vertex_base_2<Kernel,CGAL::Triangulation_vertex_base_2<Kernel,CGAL::Triangulation_ds_vertex_base_2<CGAL::Triangulation_data_structure_2<FeMDefs::Vertex_base,FeMDefs::Face_base>>>>>>,


3> Const=false


3> ]


3> D:\PE\PE_Software\3rdParty\CGAL\CGAL-4.12\include\CGAL/Mesh_2/Refine_edges_with_clusters.h(127) : see reference to function template instantiation 'CGAL::Point_2<R_> CGAL::Mesh_2::Refine_edges_base_with_clusters<Tr,Is_locally_conform>::split_cluster_point(CGAL::internal::CC_iterator<DSC,Const>,CGAL::internal::CC_iterator<DSC,Const>,const CGAL::Mesh_2::Clusters<Tr>::Cluster &) const' being compiled


3> with


3> [


3> R_=CGAL::Epeck,


3> Tr=FeMDefs::CDTriangulationPlus,


3> Is_locally_conform=CGAL::Mesh_2::Is_locally_conforming_Gabriel<FeMDefs::CDTriangulationPlus>,


3> DSC=CGAL::Compact_container<CGAL::Triangulation_vertex_base_with_info_2<std::pair<std::pair<int,int>,std::pair<int,IdType>>,Kernel,CGAL::Delaunay_mesh_vertex_base_2<Kernel,CGAL::Triangulation_vertex_base_2<Kernel,CGAL::Triangulation_ds_vertex_base_2<CGAL::Triangulation_data_structure_2<FeMDefs::Vertex_base,FeMDefs::Face_base>>>>>>,


3> Const=false


3> ]


3> D:\PE\PE_Software\3rdParty\CGAL\CGAL-4.12\include\CGAL/Mesh_2/Refine_edges_with_clusters.h(315) : see reference to class template instantiation 'CGAL::Mesh_2::Refine_edges_base_with_clusters<Tr,Is_locally_conform>' being compiled


3> with


3> [


3> Tr=FeMDefs::CDTriangulationPlus,


3> Is_locally_conform=CGAL::Mesh_2::Is_locally_conforming_Gabriel<FeMDefs::CDTriangulationPlus>


3> ]


3> D:\PE\PE_Software\3rdParty\CGAL\CGAL-4.12\include\CGAL/Delaunay_mesher_2.h(71) : see reference to class template instantiation 'CGAL::Mesh_2::Refine_edges_with_clusters<Tr,Is_locally_conform>' being compiled


3> with


3> [


3> Tr=FeMDefs::CDTriangulationPlus,


3> Is_locally_conform=CGAL::Mesh_2::Is_locally_conforming_Gabriel<FeMDefs::CDTriangulationPlus>


3> ]


3> D:\PE\PE_Software\3rdParty\CGAL\CGAL-4.12\include\CGAL/Delaunay_mesher_2.h(372) : see reference to class template instantiation 'CGAL::Delaunay_mesher_2<Tr,Crit>' being compiled


3> with


3> [


3> Tr=FeMDefs::CDTriangulationPlus,


3> Crit=FeMDefs::Criteria


3> ]


3> src\FemMesh.cpp(485) : see reference to function template instantiation 'void CGAL::refine_Delaunay_mesh_2<CDTriangulationPlus,CGAL::Delaunay_mesh_size_criteria_2<CDT>,std::_List_iterator<_Mylist>>(Tr &,InputIterator,InputIterator,const Criteria &,bool)' being compiled


3> with


3> [


3> CDT=FeMDefs::CDTriangulationPlus,


3> _Mylist=std::_List_val<std::_List_simple_types<CGAL::Point_2<CGAL::Epeck>>>,


3> Tr=CDTriangulationPlus,


3> InputIterator=std::_List_iterator<std::_List_val<std::_List_simple_types<CGAL::Point_2<CGAL::Epeck>>>>,


3> Criteria=CGAL::Delaunay_mesh_size_criteria_2<FeMDefs::CDTriangulationPlus>


3> ]



any help appreciated


 











Archive powered by MHonArc 2.6.18.

Top of Page