STL
.stl file format for geometries
The current
STL reader supports only ASCII representation.
Names for surfaces (solids) can be added in the .stl file in the following way.
solid Name1
facet normal n1 n2 n3
outer loop
vertex v11 v12 v13
vertex v21 v22 v23
vertex v31 v32 v33
endloop
...
endsolid Name1
...
If no solid name is given, it is called "face".
Note:
-
- Upon read-in of the solid, if "name" is written between quotation marks, it will be modified to name (without quotation marks).
- If the solid name is enumerated with numbers in brackets, e.g. 'solid name(1)', then MESHFREE stops the simulation.
- MESHFREE ignores color definition in the .stl file.
- Using the wildcard functionality (see AliasForGeometryItems) is recommended in case of additional information in the solid definition, e.g. 'solid cube <stl unit=MM>'.
- Comment lines (lines starting with '#') may be used in an .stl file before any solid definition and will be ignored upon read-in.
# additional information on Name1
solid Name1
...
endsolid Name1
...
# additional information on Name7
solid Name7
...
endsolid Name7
...