STL

class compas.files.STL[source]

Bases: object

Class for working with STL files.

Parameters:
filepathpath string | file-like object | URL string

A path, a file-like object or a URL pointing to a file.

precisionint, optional

Precision for converting numbers to strings. Default is TOL.precision.

Attributes:
readerSTLReader

A STL file reader.

parserSTLParser

A STL file parser.

Methods

read

Read and parse the contents of the file.

write

Write a mesh to the file.