PLY

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

Bases: object

Class for working with files in Polygon format, also known as Stanford triangle format.

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

References

Methods

read

Read the contents of the file.

write

Write a mesh to the file.