- class compas.files.OBJReader(filepath)
Read the contents of an obj file.
filepath (path string, file-like object or URL string) – A path, a file-like object or a URL pointing to a file.
vertices (list) – Vertex coordinates.
weights (list) – Vertex weights.
textures (list) – Vertex textures.
normals (list) – Vertex normals.
points (list) – Point objects, referencing the list of vertices.
lines (list) – Line objects, referencing the list of vertices.
faces (list) – Face objects, referencing the list of vertices.
curves (list) – Curves
curves2 (list) – Curves
surfaces (list) – Surfaces
objects (dict) – The named objects.
groups (dict) – The named polygon groups.
For more info, see 1.
Read the contents of the file, line by line.