Block.from_stl

classmethod Block.from_stl(filepath, precision=None)

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