from am_stl.stl.stl_parser import STLfile
from am_stl.stl.stl_builder import STLCreator
# Select an existing STL file
stl_file = STLfile(r"3dp_model.stl")
# Load it, which returns a collection of all faces in the STL-file
face_collection = stl_file.load(print_time_info=True, strict_vertex_policy=False, ignore_edges=True)
# Look for faces with overhang
face_collection.check_for_problems(ignore_grounded=True)
print(f'Found {len(face_collection.problem_faces)} problematic faces')
print(f'Found {len(face_collection.good_faces)} OK faces')
# Select where you want to save the STL file, and which face collection you want to use
stl_creator = STLCreator(r"./test.stl", face_collection)
# Build a new STL file
stl_creator.build_file()
-
Notifications
You must be signed in to change notification settings - Fork 0
Parse and create STL files
License
johnmartins/am-stl
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Parse and create STL files
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published