STL

class compas.files.STL(filepath, precision=None)[source]

Bases: object

Class for working with STL files.

Parameters
  • filepath (path string | file-like object | URL string) – A path, a file-like object or a URL pointing to a file.

  • precision (str, optional) – A COMPAS precision specification.

Attributes

Methods

read

Read and parse the contents of the file.

write

Write a mesh to the file.