PLYWriter

class compas.files.PLYWriter(filepath, mesh, author=None, email=None, date=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) – Mesh to write to the file.

  • author (str, optional) – The author name to include in the header.

  • email (str, optional) – The email of the author to include in the header.

  • date (str, optional) – The date to include in the header.

  • precision (str, optional) – COMPAS precision specification for parsing geometric data.

Methods

write

Write the data to a file.