This routine actually reads the data (points, triangles, normals) from the binary file and stores them.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=PathLen), | intent(in) | :: | filename | name of the binary stl file |
||
integer, | intent(in) | :: | nNodesRead | Number of nodes read from the file header, to compare against the actual number of nodes read |
||
integer, | intent(in) | :: | nTrisRead | Number of triangles read from the file header, to compare against the actual number of triangles read |
||
real(kind=rk), | intent(out) | :: | nodes(:,:) | point coordinates read from the stl-file size: 3, nPoints_total |
||
integer, | intent(out) | :: | tri_node(:,:) | connectivity array for the triangles size: 3, nTriangles_total |
||
integer, | intent(out) | :: | iError | error while openeing the file, or if the number of nodes/trias do not match to the ones read from the header (if error -> iError > 0) |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=single_k), | private | :: | temp(3) | ||||
character(len=80), | private | :: | header | ||||
character(len=2), | private | :: | attribute | ||||
integer, | private | :: | nTriangles | ||||
integer, | private | :: | stlUnit | ||||
integer, | private | :: | i | ||||
integer, | private | :: | nNodes | ||||
integer, | private | :: | nTris |