mirror of https://github.com/vitalif/openscad
Applied comma radix bugfix by jmarsden
git-svn-id: http://svn.clifford.at/openscad/trunk@560 b57f626f-c46c-0410-a088-ec61d464b74cstl_dim
parent
155ebf21a9
commit
da22443646
|
@ -83,6 +83,8 @@ void export_stl(CGAL_Nef_polyhedron *root_N, QString filename, QProgressDialog *
|
|||
typedef CGAL_Polyhedron::Facet_const_iterator FCI;
|
||||
typedef CGAL_Polyhedron::Halfedge_around_facet_const_circulator HFCC;
|
||||
|
||||
setlocale(LC_NUMERIC, "C"); // Ensure radix is . (not ,) in output
|
||||
|
||||
FILE *f = fopen(filename.toUtf8().data(), "w");
|
||||
if (!f) {
|
||||
PRINTA("Can't open STL file \"%1\" for STL export: %2",
|
||||
|
@ -142,6 +144,7 @@ void export_stl(CGAL_Nef_polyhedron *root_N, QString filename, QProgressDialog *
|
|||
|
||||
fprintf(f, "endsolid OpenSCAD_Model\n");
|
||||
fclose(f);
|
||||
setlocale(LC_NUMERIC, ""); // Set default locale
|
||||
}
|
||||
|
||||
void export_off(CGAL_Nef_polyhedron*, QString, QProgressDialog*)
|
||||
|
|
Loading…
Reference in New Issue