you might also want to look at openscad.
Not only could you simply input the equations and have it generate a 3d graph, but you can import 2d dxf files and extrude them into 3d very easily.
And...