OFFWriter

class compas.files.OFFWriter(filepath, mesh, author=None, email=None, date=None, precision=None)[source]

Bases: object

Class for writing geometric data to a OBJ file.

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

  • mesh (compas.datastructures.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 meshes to the file.