Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Lloyd optimize with 'CGAL::Triangulation_vertex_base_with_info_2

Subject: CGAL users discussion list

List archive

[cgal-discuss] Lloyd optimize with 'CGAL::Triangulation_vertex_base_with_info_2


Chronological Thread 
  • From: Dinesh Shetty <>
  • To:
  • Subject: [cgal-discuss] Lloyd optimize with 'CGAL::Triangulation_vertex_base_with_info_2
  • Date: Fri, 20 Apr 2018 13:54:34 -0500
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:r2btQBzBjmcpx8vXCy+O+j09IxM/srCxBDY+r6Qd1OsVIJqq85mqBkHD//Il1AaPAd2Araocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HdbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRHohikJNCM3/n/LhcFrlq1XvAisqgZjz4LIYoyYMud1cKPHfdMdQGpMRshfVy1HAoyidIsPD/cKM/tYr4bju1sOsRu/DhSrCezyyz9IgGH53bY60+g7EAHG3RcgEM4VvXTbqdX6LqYSUeSvwKbUyjXDaupb1DHg44bLahAsue+AUa50fMbLykQiFxnJgkuOpYD5JT+Zy+cAv3Sd4uF9T+ygkXQnpBt0ojW3xscjlI3JhoUNx1DB7yp5wYI1KcShSE54fdKoCZVQuzyZOodqWM8iTGZouCE1yr0Cp5G3ZjQFyJMixxLHavyHdZaH4g77WeqPPTt1gGhpdbG/ihqo70Ss1PHwWtOp3FtJsiZJitzMuWoM1xzX5MiHUPx9/kK51DmS1gDT7P9LIVs0labBKp4hw6UwmYYIvETMGy/5gkT2jKuMeko4/eio7vzrYq/6qZ+EK490lgb+P7wylcywG+s4NhECUHWa+eSnyLLj4Fb5QK5Rg/0tkqjZtYjaKt4Bqq64BQ9VyIcj5AylAzeoytRL1UUAeVlKcRbCg4nyMEzVO9j5C+2+ihKiimRF3ffDa5HgBJjWLjD4kLr9Yac1v0JdzgcozZZe5olfIr4EKfP3HET2sYqLXVcCLwWozrO/W51G3YQEVDfXW/7LAObpqVaNo9kXDayJbY4Rtiz6LqF8tfHrhH4931QaePvwhMdFWDWDBv1jZn6hTz/0mN5YSDUFuwM/SKrhj1jQCWcONUb3ZLo143QAMKzjDYrHQdrz0rmI3SP+B54OI24fWgjKHnDveIGJHfwLbXDKLw==

Hi
I am trying to optimize the mesh I obtain after I perform delauny refinement as shown below

CGAL::refine_Delaunay_mesh_2(cdtp, seed.begin(), seed.end(), Criteria( cnfg_.MaxTriangleSkewness(), cnfg_.MaxTriangleEdgeLength()*2.0));
if(OptimizeMesh)
{
CGAL::lloyd_optimize_mesh_2(cdtp ,CGAL::parameters::max_iteration_number = MeshOptItr);
}

However I get a compiler error as shown below
3>D:\PE\PE_Software\3rdParty\CGAL\CGAL-4.12-beta2\include\CGAL/Mesh_2/Mesh_global_optimizer_2.h(379): error C2039: 'sizing_info' : is not a member of 'CGAL::Triangulation_vertex_base_with_info_2<Info_,GT,Vb>'
3>          with
3>          [
3>              Info_=std::pair<std::pair<int,int>,std::pair<int,IdType>>,
3>              GT=Kernel,
3>              Vb=CGAL::Triangulation_vertex_base_2<CGAL::Exact_predicates_inexact_constructions_kernel,CGAL::Triangulation_ds_vertex_base_2<CGAL::Triangulation_data_structure_2<Vertex_base,Face_base>>>
3>          ]
3>          D:\PE\PE_Software\3rdParty\CGAL\CGAL-4.12-beta2\include\CGAL/Mesh_2/Mesh_global_optimizer_2.h(371) : while compiling class template member function 'void CGAL::Mesh_2::Mesh_global_optimizer_2<CDT,MoveFunction>::update_mesh(const std::vector<_Ty> &)'
3>          with
3>          [
3>              CDT=CGAL::Constrained_triangulation_plus_2<CDTriangulation>,
3>              MoveFunction=Mv,
3>              _Ty=std::pair<CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_base_with_info_2<std::pair<std::pair<int,int>,std::pair<int,IdType>>,Kernel,CGAL::Triangulation_vertex_base_2<CGAL::Exact_predicates_inexact_constructions_kernel,CGAL::Triangulation_ds_vertex_base_2<CGAL::Triangulation_data_structure_2<Vertex_base,Face_base>>>>>,false>,CGAL::Point_2<CGAL::Epick>>
3>          ]
3>          D:\PE\PE_Software\3rdParty\CGAL\CGAL-4.12-beta2\include\CGAL/Mesh_2/Mesh_global_optimizer_2.h(178) : see reference to function template instantiation 'void CGAL::Mesh_2::Mesh_global_optimizer_2<CDT,MoveFunction>::update_mesh(const std::vector<_Ty> &)' being compiled
3>          with
3>          [
3>              CDT=CGAL::Constrained_triangulation_plus_2<CDTriangulation>,
3>              MoveFunction=Mv,
3>              _Ty=std::pair<CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_base_with_info_2<std::pair<std::pair<int,int>,std::pair<int,IdType>>,Kernel,CGAL::Triangulation_vertex_base_2<CGAL::Exact_predicates_inexact_constructions_kernel,CGAL::Triangulation_ds_vertex_base_2<CGAL::Triangulation_data_structure_2<Vertex_base,Face_base>>>>>,false>,CGAL::Point_2<CGAL::Epick>>
3>          ]

I use visual studio 2012 on windows 7
Any help appreciated..
Regards
Dinesh



Archive powered by MHonArc 2.6.18.

Top of Page