BasicTools.IO.StlReader module
Stl file reader
- BasicTools.IO.StlReader.ReadStl(fileName: str | None = None, string: str | None = None) UnstructuredMesh[source]
Read Stl file into a UnstructuredMesh
- Parameters:
fileName (str, optional) – The name of the file to read, by default None
string (str, optional) – the string to read in the case of reading from memory, by default None
- Returns:
the stl surface
- Return type:
- class BasicTools.IO.StlReader.StlReader(fileName=None)[source]
Bases:
ReaderBaseStl read class
- Read(fileName=None, string=None, out=None) UnstructuredMesh[source]
Read a file or a string as a stl surface, ASCII and binary format are supported.
- Parameters:
fileName (str, optional) – The name of the file to read, by default None
string (str, optional) – the string to read in the case of reading from memory, by default None
out (UnstructuredMesh, optional) – output unstructured mesh object containing reading result, by default None
- Returns:
the read stl surface
- Return type: