Skip to main content

Module stl

Module stl 

Source
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§

ImportStl
Adds the mesh of the STL file file to the part: its triangles as faces, joined where they share corners, and the triangles that lie in one plane made one face (see BodySpec::of_triangles and BodySpec::merged). A solid named import_stl(I) for the operation I where every edge is shared by two triangles, a sheet otherwise; each face, edge and vertex named import_stl(I,fK), eK, vK in 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.
ImportStlArgs

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 — to model, named by namer (see ImportStl).
is_stl_file
Whether path names 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 starting solid (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.