Mesh.to_stl
- Mesh.to_stl(filepath, precision=None, binary=False, **kwargs)[source]
Write a mesh to an STL file.
- Parameters
filepath (str) – The path to the file.
precision (str, optional) – Rounding precision for the vertex coordinates. Default is
"3f"
.binary (bool, optional) – When
False
, the file will be written in ASCII encoding, whenTrue
, binary. Default isFalse
.
- Returns
None
Notes
STL files only support triangle faces. It is your responsibility to convert all faces of your mesh to triangles. For example, with
compas.datastructures.mesh_quads_to_triangles()
.