-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from hroncok/i52
Fix for issue #52
- Loading branch information
Showing
5 changed files
with
90 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters