Mesh.from_stl

classmethod Mesh.from_stl(filepath, precision=None)

Construct a mesh object from the data described in a STL 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

compas.datastructures.Mesh – A mesh object.