This is an old revision of the document!
Although STL files have their weaknesses, it is sometimes useful to use them as an intermediary between VSP and Cart3D.
Cart3D comes with the 'stl2tri.pl' script which automates the process of converting a STL file to a TRI file. This script relies on the admesh program to infer the mesh connectivity and to fix any small problems with the mesh topology or geometry.
Admesh is an open source program which is not distributed with Cart3D or OpenVSP. You must download, compile, and install it separately to use 'stl2tri.pl'. Go to the admesh web site to obtain the admesh source code.
To convert a STL file using 'stl2tri.pl', type the following command.
stl2tri.pl infile.stl outfile.a.tri
This will create the following files:
Once the STL file has been converted and the mesh file has been re-named to 'Components.i.tri', continue to the Cart3D Setup Tutorial.