polyfoammesh.core.stl_writer
Functions
|
Rough estimate of ASCII STL size in bytes for a set of meshes. |
|
|
|
|
|
Apply trimesh repair operations to clean geometry before STL export. |
|
Parse an ASCII STL and return {solid_name: face_count}. |
|
|
|
Write multi-solid STL in binary format (~5x faster, ~4x smaller). |
- polyfoammesh.core.stl_writer.heal_mesh(mesh)[source]
Apply trimesh repair operations to clean geometry before STL export.
Returns the mesh (mutated in-place) and logs any changes made.
- Return type:
Trimesh- Parameters:
mesh (Trimesh)
- polyfoammesh.core.stl_writer.write_binary_stl(patches, filepath)[source]
Write multi-solid STL in binary format (~5x faster, ~4x smaller).