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")) {
|
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");
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user