STLWriter
- class compas.files.STLWriter(filepath, mesh, binary=False, solid_name=None, precision=None)[source]
Bases:
object
Class for writing geometric data to a PLY file.
- Parameters
filepath (path string | file-like object | URL string) – A path, a file-like object or a URL pointing to a file.
mesh (
Mesh
) – The mesh.binary (bool, optional) – Flag indicating that the file should be written in binary format.
solid_name (str, optional) – The name of the solid. Defaults to the name of the mesh.
precision (str, optional) – COMPAS precision specification for parsing geometric data.
Methods
Write the data to a file.