tests/qt-lc_numeric-reproducer
raw| 1 | from __future__ import print_function |
| 2 | |
| 3 | import os.path |
| 4 | import sys |
| 5 | |
| 6 | from stl import mesh |
| 7 | |
| 8 | try: |
| 9 | from PySide2 import QtWidgets |
| 10 | except ImportError: |
| 11 | from PyQt5 import QtWidgets |
| 12 | |
| 13 | app = QtWidgets.QApplication([]) |
| 14 | |
| 15 | dir_path = os.path.dirname(os.path.realpath(__file__)) |
| 16 | stl_path = os.path.join(dir_path, 'stl_ascii/Star.stl') |
| 17 | |
| 18 | your_mesh = mesh.Mesh.from_file(stl_path, speedups=True) |