Expand description
ImportStl: a mesh of triangles, from an STL file, added to the part
as a B-rep — a solid where it closes, a sheet where it does not.
Structs§
- Import
Stl - Adds the mesh of the STL file
fileto the part: its triangles as faces, joined where they share corners, and the triangles that lie in one plane made one face (seeBodySpec::of_trianglesandBodySpec::merged). A solid namedimport_stl(I)for the operationIwhere every edge is shared by two triangles, a sheet otherwise; each face, edge and vertex namedimport_stl(I,fK),eK,vKin the order the merged mesh has them. Corners at the very same coordinates are one; the file is read in either form, text (ASCII STL) or binary. - Import
StlArgs
Constants§
- STL_
EXTENSIONS - The extension of an STL file.
Functions§
- add_
mesh - Adds the mesh of the STL file
file— its bytes, in either form — tomodel, named bynamer(seeImportStl). - is_
stl_ file - Whether
pathnames an STL file. - read_
stl - The corners and triangles of the STL file
file, corners at the very same coordinates one. Binary where its length is that of a binary STL of as many triangles as its header says — 84 bytes and 50 a triangle, which a text file startingsolid(as some binary headers do too) all but never is — and text (ASCII STL) otherwise. The facets’ normals are not read: the order of the corners says which way a triangle faces.