File: qt-lc_numeric-reproducer

package info (click to toggle)
numpy-stl 2.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,416 kB
  • sloc: python: 1,811; makefile: 137
file content (18 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from __future__ import print_function

import os.path
import sys

from stl import mesh

try:
    from PySide2 import QtWidgets
except ImportError:
    from PyQt5 import QtWidgets

app = QtWidgets.QApplication([])

dir_path = os.path.dirname(os.path.realpath(__file__))
stl_path = os.path.join(dir_path, 'stl_ascii/Star.stl')

your_mesh = mesh.Mesh.from_file(stl_path, speedups=True)