diff --git a/Stream_support/include/CGAL/IO/STL.h b/Stream_support/include/CGAL/IO/STL.h index 92047e79bea..361e2b81eb7 100644 --- a/Stream_support/include/CGAL/IO/STL.h +++ b/Stream_support/include/CGAL/IO/STL.h @@ -307,7 +307,7 @@ bool write_STL(std::ostream& os, set_stream_precision_from_NP(os, np); - typedef Simple_cartesian SC; + typedef Simple_cartesian SC; typedef typename SC::Point_3 Point_3; typedef typename SC::Vector_3 Vector_3; Cartesian_converter conv; @@ -330,10 +330,10 @@ bool write_STL(std::ostream& os, const Vector_3 nn = collinear(pp,qq,rr) ? Vector_3(1,0,0) : unit_normal(pp,qq,rr); - const float coords[12] = { static_cast(nn.x()), static_cast(nn.y()), static_cast(nn.z()), - static_cast(pp.x()), static_cast(pp.y()), static_cast(pp.z()), - static_cast(qq.x()), static_cast(qq.y()), static_cast(qq.z()), - static_cast(rr.x()), static_cast(rr.y()), static_cast(rr.z()) }; + const float coords[12] = { nn.x(), nn.y(), nn.z(), + pp.x(), pp.y(), pp.z(), + qq.x(), qq.y(), qq.z(), + rr.x(), rr.y(), rr.z() }; for(int i=0; i<12; ++i) os.write(reinterpret_cast(&coords[i]), sizeof(coords[i]));