mphreadstl
Read an STL file and return the data into a plot data structure.
Syntax
pd = mphreadstl(filename)
Description
pd = mphreadstl(filename) reads the STL file filename and returns the data into the plot data structure pd.
pd is a structure with fields n, p, t, name, ref, rgb, expr, and d1.
The field n contains the normal vector for the triangle.
The field p contains node point coordinate information.
The field t contains the indices to columns in p of a simplex mesh, each column in t representing a simplex.
The field name contains the name of the file the data come from.
The field ref contains the header of the file.
The field rgb contains the color model data at each vertices. The columns correspond to node point coordinates in columns in p.
The field expr contains the data description.
The field d1 contains the data value at each vertices. The columns correspond to node point coordinates in columns in p.
Both binary and ASCII STL files are supported.
See also
mphquad2tri, mphsurf, mphwritestl