Exemple #1
0
    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.")
Exemple #2
0
    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)
Exemple #3
0
def to_stl(model, path, delta):
	path = os.path.expanduser(path)
	pyservoce.make_stl(model, path, delta)
Exemple #4
0
def to_stl(model, path, delta):
    pyservoce.make_stl(model, path, delta)