Mesh.from_obj

classmethod Mesh.from_obj(filepath, precision=None)

Construct a mesh object from the data described in an OBJ file.

Parameters
  • filepath (str) – The path to the file.

  • precision (str, optional) – The precision of the geometric map that is used to connect the lines.

Returns

Mesh – A mesh object.

Notes

There are a few sample files available for testing and debugging:

  • faces.obj

  • faces_big.obj

  • faces_reversed.obj

  • hypar.obj

  • mesh.obj

  • quadmesh.obj