Merged the ParameterizedTraits_3 and BorderParameterizer_3 concepts

Incident changes:
- Angle computations helper, Error_code and kernel_traits<TriangleMesh> live in
  their own file
- Doc and examples changes
This commit is contained in:
Mael Rouxel-Labbé
2017-06-22 16:14:55 +02:00
parent 8922e36408
commit a8f82f4382
27 changed files with 953 additions and 966 deletions
@@ -33,17 +33,17 @@ int main(int argc, char * argv[])
SurfaceMesh sm;
in >> sm;
// An halfedge on the border
halfedge_descriptor hd = CGAL::Polygon_mesh_processing::longest_border(sm).first;
// a halfedge on the border
halfedge_descriptor bhd = CGAL::Polygon_mesh_processing::longest_border(sm).first;
// The UV property map that holds the parameterized values
typedef SurfaceMesh::Property_map<vertex_descriptor, Point_2> UV_pmap;
UV_pmap uv_map = sm.add_property_map<vertex_descriptor, Point_2>("h:uv").first;
SMP::parameterize(sm, hd, uv_map);
SMP::parameterize(sm, bhd, uv_map);
std::ofstream out("result.off");
SMP::IO::output_uvmap_to_off(sm, hd, uv_map, out);
SMP::IO::output_uvmap_to_off(sm, bhd, uv_map, out);
return 0;
}