def addon_exportstl(self): ok, path, shape = self.export_file_for_one_shape(filters="*.stl;;*.*", defaultFilter="*.stl") if ok == False or path == "": return d, okPressed = QInputDialog.getDouble(self, "Get double", "Value:", 0.01, 0, 10, 10) if not okPressed: return pyservoce.make_stl(shape, path, d) print("Make STL procedure finished.")
def exportStlAction(self): d, okPressed = QInputDialog.getDouble(self, "Get double", "Value:", 0.01, 0, 10, 10) if not okPressed: return filters = "*.stl;;*.*" defaultFilter = "*.stl" path = QFileDialog.getSaveFileName(self, "STL Export", QDir.currentPath(), filters, defaultFilter) path = path[0] pyservoce.make_stl(self.dispw.scene[0].shape(), path, d)
def to_stl(model, path, delta): path = os.path.expanduser(path) pyservoce.make_stl(model, path, delta)
def to_stl(model, path, delta): pyservoce.make_stl(model, path, delta)