Skip to content

johnmartins/am-stl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example

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()

About

Parse and create STL files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages