From df8e09196d68e9cb6175d88b94de26e3906c8839 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 29 Nov 2019 13:46:30 +0100 Subject: [PATCH] set default deflection of 0.01 when exporting shape as STL --- src/Mod/Part/App/TopoShape.cpp | 2 +- src/Mod/Part/App/TopoShapePyImp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/App/TopoShape.cpp b/src/Mod/Part/App/TopoShape.cpp index a58e821ab1..60c180ade0 100644 --- a/src/Mod/Part/App/TopoShape.cpp +++ b/src/Mod/Part/App/TopoShape.cpp @@ -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"); diff --git a/src/Mod/Part/App/TopoShapePyImp.cpp b/src/Mod/Part/App/TopoShapePyImp.cpp index 665b2c750d..3144b8d4a2 100644 --- a/src/Mod/Part/App/TopoShapePyImp.cpp +++ b/src/Mod/Part/App/TopoShapePyImp.cpp @@ -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;