set default deflection of 0.01 when exporting shape as STL
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user