OFFReader

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

Bases: object

Read the contents of an obj file.

Parameters

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

Attributes
  • vertices (list) – Vertex coordinates.

  • faces (list) – Face objects, referencing the list of vertices.

Notes

The OFF reader currently only supports reading of vertices and faces of polygon meshes.

References

Methods

open

post

pre

read

Read the contents of the file, line by line.