OBJWriter

class compas.files.OBJWriter(filepath, meshes, precision=None, unweld=False, author=None, email=None, date=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.

  • meshes (list[Mesh]) – list of meshes to write to the file.

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

  • unweld (bool, optional) – Flag indicating that the face vertices should be unwelded.

  • 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.

Methods

write

Write the meshes to the file.