def _runImp(self):
        if self._show_ui:
            self._file_path = str(
                QFileDialog.getSaveFileName(None, "Save Depth Mesh",
                                            self._root_dir,
                                            "Obj File (*.obj)"))

        if self._file_path is "":
            return

        RGBA_8U = self._scene.image()
        D_32F = self._scene.depth()

        if D_32F is None:
            return

        model = ImagePlane(RGBA_8U)
        model.setDepth(D_32F)
        vertices = model.mesh().positions()
        index_array = model.mesh().indexArray()
        vertex_colors = model.mesh().vertexColors()

        saveOBJ(self._file_path, vertices, index_array, vertex_colors)
    def _runImp(self):
        if self._show_ui:
            self._file_path = str(QFileDialog.getSaveFileName(None, "Save Depth Mesh", self._root_dir, "Obj File (*.obj)" ))

        if self._file_path is "":
            return

        RGBA_8U = self._scene.image()
        D_32F = self._scene.depth()

        if D_32F is None:
            return

        model = ImagePlane(RGBA_8U)
        model.setDepth(D_32F)
        vertices = model.mesh().positions()
        index_array = model.mesh().indexArray()
        vertex_colors = model.mesh().vertexColors()

        saveOBJ(self._file_path, vertices, index_array, vertex_colors)
 def setRGBAD(self, RGBA_8U, D_32F):
     model = ImagePlane(RGBA_8U)
     if D_32F is not None:
         model.setDepth(D_32F)
     self.setModel(model)
     self.update()
 def setRGBAD(self, RGBA_8U, D_32F):
     model = ImagePlane(RGBA_8U)
     if D_32F is not None:
         model.setDepth(D_32F)
     self.setModel(model)
     self.update()