this is a general 3d models viewer using Irrlicht engine which support at least the following models:
*.stl;*.obj;*.3ds;*.x;*.mesh;*.ply;*.b3d;*.ply;*.csm;*.dae;*.xml;*.dmf;*.ms3d;*.my3d;*.oct;*.lmts;*.bsp;*.md2
and it can save any mesh to test.STL file for 3D printing

usage:
mouse and arrow keys to navigate the scene with the camera
Space key: to choose another model to view
W: wireframe
S: SolidFrame
V: save to test.STL

full working demo with the code in thinbasic and irrlicht dll and wrapper also i have added several models to test in different formats:
http://www.mediafire.com/file/3r6qpz...dels_viewer.7z