VolMesh.from_obj

classmethod VolMesh.from_obj(filepath, precision=None)

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

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

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

Returns

compas.datastructures.VolMesh – A volmesh object.