sdf library in a Python virtualenv. git clone https://github.com/fogleman/sdf.git cd sdf virtualenv env . env/bin/activate pip install -e . Confirm that it works: You can skip the installation if you always run scripts that import sdf from the root folder. File Formats sdf natively writes binary STL files. For other formats, meshio is used (based on your output file extension). This adds support for over 20 different 3D file formats, including OBJ, PLY, VTK, and many more. Viewing the Mesh Find and install a 3D mesh viewer for your platform, such as MeshLab. I have developed and use my own cross-platform mesh viewer called meshview (see screenshot).