OFFReader

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

Bases: object

Read the contents of an obj file.

Parameters

filepath (str) – Path to the 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

__init__(filepath)

Initialize self.

open()

post()

pre()

read()

Read the contents of the file, line by line.