Fixes and clean-up

This commit is contained in:
Maxime Gimeno 2021-01-08 13:15:04 +01:00
parent fe12d897f9
commit bcac80b15c
3 changed files with 2 additions and 4 deletions

View File

@ -276,7 +276,7 @@ void write_polys_tag(std::ostream& os,
os << ">\n"; os << ">\n";
std::size_t polys_offset = 0; std::size_t polys_offset = 0;
for(face_descriptor f : faces(g)) for(int i = 0; i< faces(g).size(); ++i)
{ {
polys_offset += 3; polys_offset += 3;
os << polys_offset << " "; os << polys_offset << " ";

View File

@ -39,7 +39,7 @@ int main(int, char**)
std::ifstream stream("data/oni.pwn"); std::ifstream stream("data/oni.pwn");
if (!stream || if (!stream ||
!CGAL::read_xyz_points !CGAL::read_XYZ
(stream, std::back_inserter(points), (stream, std::back_inserter(points),
CGAL::parameters:: CGAL::parameters::
point_map(Point_map()). point_map(Point_map()).

View File

@ -47,8 +47,6 @@ bool vtkPointSet_to_polygon_soup(vtkPointSet* poly_data,
PolygonRange& polygons, PolygonRange& polygons,
const NamedParameters&) const NamedParameters&)
{ {
typedef typename boost::range_value<PointRange>::type Point;
vtkIdType nb_points = poly_data->GetNumberOfPoints(); vtkIdType nb_points = poly_data->GetNumberOfPoints();
vtkIdType nb_cells = poly_data->GetNumberOfCells(); vtkIdType nb_cells = poly_data->GetNumberOfCells();
polygons.reserve(nb_cells); polygons.reserve(nb_cells);