set default deflection of 0.01 when exporting shape as STL

This commit is contained in:
wmayer
2019-11-29 13:46:30 +01:00
parent dccfc474b4
commit df8e09196d
2 changed files with 2 additions and 2 deletions

View File

@@ -832,7 +832,7 @@ void TopoShape::write(const char *FileName) const
} }
else if (File.hasExtension("stl")) { else if (File.hasExtension("stl")) {
// read brep-file // read brep-file
exportStl(File.filePath().c_str(),0); exportStl(File.filePath().c_str(), 0.01);
} }
else{ else{
throw Base::FileException("Unknown extension"); throw Base::FileException("Unknown extension");

View File

@@ -580,7 +580,7 @@ PyObject* TopoShapePy::__setstate__(PyObject *args) {
PyObject* TopoShapePy::exportStl(PyObject *args) PyObject* TopoShapePy::exportStl(PyObject *args)
{ {
double deflection = 0; double deflection = 0.01;
char* Name; char* Name;
if (!PyArg_ParseTuple(args, "et|d","utf-8",&Name,&deflection)) if (!PyArg_ParseTuple(args, "et|d","utf-8",&Name,&deflection))
return NULL; return NULL;