Cell.to_stl
- Cell.to_stl(filepath, precision=None, binary=False, **kwargs)
Write a mesh to an STL file.
- Parameters
filepath (str) – The path to the file.
precision (str, optional) – Rounding precision for the vertex coordinates. Defaults to the value of
compas.PRECISION
.binary (bool, optional) – If True, the file will be written in binary format. ASCII otherwise.
- Returns
None
Notes
STL files only support triangle faces. It is the user’s responsibility to convert all faces of a mesh to triangles. For example, with
compas.datastructures.mesh_quads_to_triangles()
.