OFF

class compas.files.OFF(filepath)[source]

Bases: object

Class for working with OFF files.

Parameters

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

Attributes

reader (OFFReader, read-only) – A OFF file reader.

References

Methods

read

Read and parse the contents of the file.

write

Write a mesh to the file.