mirror of https://github.com/CGAL/cgal
Fixes and clean-up
This commit is contained in:
parent
fe12d897f9
commit
bcac80b15c
|
|
@ -276,7 +276,7 @@ void write_polys_tag(std::ostream& os,
|
|||
os << ">\n";
|
||||
std::size_t polys_offset = 0;
|
||||
|
||||
for(face_descriptor f : faces(g))
|
||||
for(int i = 0; i< faces(g).size(); ++i)
|
||||
{
|
||||
polys_offset += 3;
|
||||
os << polys_offset << " ";
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ int main(int, char**)
|
|||
|
||||
std::ifstream stream("data/oni.pwn");
|
||||
if (!stream ||
|
||||
!CGAL::read_xyz_points
|
||||
!CGAL::read_XYZ
|
||||
(stream, std::back_inserter(points),
|
||||
CGAL::parameters::
|
||||
point_map(Point_map()).
|
||||
|
|
|
|||
|
|
@ -47,8 +47,6 @@ bool vtkPointSet_to_polygon_soup(vtkPointSet* poly_data,
|
|||
PolygonRange& polygons,
|
||||
const NamedParameters&)
|
||||
{
|
||||
typedef typename boost::range_value<PointRange>::type Point;
|
||||
|
||||
vtkIdType nb_points = poly_data->GetNumberOfPoints();
|
||||
vtkIdType nb_cells = poly_data->GetNumberOfCells();
|
||||
polygons.reserve(nb_cells);
|
||||
|
|
|
|||
Loading…
Reference in New Issue