mirror of https://github.com/CGAL/cgal
Fix errors/warnings
This commit is contained in:
parent
af80f79be7
commit
9b95a5b62c
|
|
@ -60,10 +60,10 @@ int main(int argc, char** argv)
|
|||
std::ofstream out ("out.off");
|
||||
out << "OFF" << std::endl << points.size() << " " << reconstruct.number_of_facets() << " 0" << std::endl;
|
||||
|
||||
for (typename Point_set::iterator it = points.begin(); it != points.end(); ++ it)
|
||||
for (Point_set::iterator it = points.begin(); it != points.end(); ++ it)
|
||||
out << points.point(*it) << std::endl;
|
||||
|
||||
for (typename Reconstruction::Facet_iterator it = reconstruct.facets_begin();
|
||||
for (Reconstruction::Facet_iterator it = reconstruct.facets_begin();
|
||||
it != reconstruct.facets_end(); ++ it)
|
||||
out << "3 " << (*it)[0] << " " << (*it)[1] << " " << (*it)[2] << std::endl;
|
||||
|
||||
|
|
|
|||
|
|
@ -233,7 +233,8 @@ public:
|
|||
for (Facet_iterator it = _surface.begin(); it != _surface.end(); ++ it)
|
||||
{
|
||||
Facet t = *it;
|
||||
*(output ++) = {{ (*it)[0], (*it)[1], (*it)[2] }};
|
||||
cpp11::array<std::size_t, 3> f = {{ std::size_t((*it)[0]), std::size_t((*it)[1]), std::size_t((*it)[2]) }};
|
||||
*(output ++) = f;
|
||||
}
|
||||
// std::copy (_surface.begin(), _surface.end(), output);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue