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")) {
// read brep-file
exportStl(File.filePath().c_str(),0);
exportStl(File.filePath().c_str(), 0.01);
}
else{
throw Base::FileException("Unknown extension");

View File

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