Block.from_obj

classmethod Block.from_obj(filepath, precision=None)

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

Parameters:
filepathstr

The path to the file.

precision: str, optional

The precision of the geometric map that is used to connect the lines.

Returns:
compas.datastructures.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