Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] autorefine_and_remove_self_intersections: Error C2665 'CGAL::get': none of the 3 overloads could convert all the argument types

Subject: CGAL users discussion list

List archive

[cgal-discuss] autorefine_and_remove_self_intersections: Error C2665 'CGAL::get': none of the 3 overloads could convert all the argument types


Chronological Thread 
  • From: sergio <>
  • To:
  • Subject: [cgal-discuss] autorefine_and_remove_self_intersections: Error C2665 'CGAL::get': none of the 3 overloads could convert all the argument types
  • Date: Wed, 27 Jun 2018 04:25:14 -0700 (MST)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
  • Ironport-phdr: 9a23:AjorQxzlschWb0LXCy+O+j09IxM/srCxBDY+r6Qd1OoRIJqq85mqBkHD//Il1AaPAd2Fraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HSbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRHmiCkJKT03/nzYhcNsg6xWuw6hqh5jz4LIfI2ZKORyc6XAdt0aX2pBWcNRWjRaAoyidYsPAOsBPeFFpIT6uVsBtwexBQiqBOPgxD9IgWX23aoh3uQuFAHJxg0gH9YUvHvIq9X1Mb4fXOaox6fGyjXDaulZ2Tb76IXQdBAuu+qDUql0ccXP00UgCwTFjlCWpIf4PD2VzvwAv3Wa4uZ+T+6jlW4qpg9rrjSyyMohhJPFi4ALxl3C6C532pw6JceiR05+edOkEIVftyWdN4ZuRMMvTHtkuCAgxbIdopG7eDYFxI47yB7YbvyLa4mI4hT9W+aNOTp0mXNodKylixqs8UWtxPfwWtS63VtEtCZIkMfAumgI1xPJ68iHTvV9/l2m2TaKzw3T9PtLLlw1lardJJ4hzLkwloAUsUnYES/2nV/5jK6Sdkk+5ueo7OHnbq38ppCAL490lh3+MqM2l8OjDuQ3KAwOU3GG9uS9z73s4VD5QK5RjvAtianYsJXaJdwBqaKjAg9V1Jwj6xelADu83tQYhypPEFUQcx2Oi83lOkrFPevjJfa5mVWl1jlxlN7cObi0GZjXIXnE2OP/dL187UFSzxA05d9a7pNQTLoGJaSgCQfKqNXEA0phYESPyOH9BYAlj9JMaSe0GqacdZjqnxqN7+MrLfOLYdZM6jn4IvkhofXpiC1iwANPTeySxZISLUuAMLF+OUzAOCjjh94AFSEBuQ9sFLW32m3HaiZaYjOJZ4x55jw/D9v7X4GfAIakiraF0WGwGZgEP20=

I have the following code:

bool repairOBJFile(std::string & fileName)
{
clock_t begin = clock();

std::cout << std::endl;
std::cout << std::endl;

std::cout <<
"..........................................................."
<< std::endl;
std::cout << ". Reapairing
."
<< std::endl;
std::cout <<
"..........................................................."
<< std::endl;

std::ifstream input(fileName);
if (!input)
{
std::cerr << "Cannot open file " << std::endl;
return false;
}

std::vector<Kernel::Point_3> points;
std::vector< std::vector<std::size_t> > polygons;
if (!CGAL::read_OBJ(input, points, polygons))
{
std::cerr << "Error parsing the OFF file " << std::endl;
return false;
}
//Mesh mesh;
Polyhedron mesh;
CGAL::Polygon_mesh_processing::orient_polygon_soup(points, polygons);
CGAL::Polygon_mesh_processing::polygon_soup_to_polygon_mesh(points,
polygons, mesh);


bool solved =
CGAL::Polygon_mesh_processing::experimental::autorefine_and_remove_self_intersections(mesh);
if (!solved)
{
std::cout << "Some self-intersection could not be fixed" <<
std::endl;
//return false;
}

addStringToFileName(fileName, "_fixed.obj");
std::ofstream ofs(fileName);
CGAL::print_polyhedron_wavefront(ofs, mesh);

clock_t end = clock();
double elapsed_secs = double(end - begin) / CLOCKS_PER_SEC;

std::cout << std::endl;
std::cout << std::endl;

std::cout << "Repairing time:.................." << elapsed_secs << "
seconds."<<" = " << elapsed_secs/60<<"min"<< std::endl;

return true;
}

the result of the compilation is the following messages:

Severity Code Description Project File Line Suppression
State
Error C2665 'CGAL::get': none of the 3 overloads could convert all the
argument types cgal_vtk_test
C:\dev\CGAL-4.12\include\CGAL\Polygon_mesh_processing\internal\Corefinement\Output_builder_for_autorefinement.h
317

Severity Code Description Project File Line Suppression
State
Error C2039 'key_type': is not a member of
'boost::property_traits<KeyMap>'
cgal_vtk_test C:\dev\CGAL-4.12\include\CGAL\property_map.h 111

Severity Code Description Project File Line Suppression
State
Error C3646 'key_type': unknown override specifier cgal_vtk_test
C:\dev\CGAL-4.12\include\CGAL\property_map.h 111


Severity Code Description Project File Line Suppression
State
Error C4430 missing type specifier - int assumed. Note: C++ does not
support
default-int cgal_vtk_test C:\dev\CGAL-4.12\include\CGAL\property_map.h
111


Severity Code Description Project File Line Suppression
State
Error C2665
'CGAL::Property_map_binder<FaceIdMap,boost::iterator_property_map&lt;T
*,boost::typed_identity_property_map&lt;T>,T,T &>>::get': none of the 5
overloads could convert all the argument types cgal_vtk_test
C:\dev\CGAL-4.12\include\CGAL\Polygon_mesh_processing\internal\Corefinement\Output_builder_for_autorefinement.h
415

whats wrong?

Thanks in adavance





--
Sent from: http://cgal-discuss.949826.n4.nabble.com/


  • [cgal-discuss] autorefine_and_remove_self_intersections: Error C2665 'CGAL::get': none of the 3 overloads could convert all the argument types, sergio, 06/27/2018

Archive powered by MHonArc 2.6.18.

Top of Page