[Tex/LaTex] Drawing 3d diagrams

3ddiagrams

I would like to use a few simple 3d diagrams in my LaTeX document. They primarily consist of polyline segments in 3d, along with an occasional simple surface (e.g. paraboloid). There are two questions:

1) Is there a good way to draw polylines in 3d that conveys the depth? I thought about fading based on distance from the eye, and also of shadows of the drawing on the coordinate planes, but I am not sure how well it'd work in practice. I'd love hear how others solved this/see some examples that I can imitate.

2) What are the drawing packages that are compatible with LaTeX that would make the task of drawing easier. I know of asymptote which can draw parametric 3d surfaces, but are there others?

Best Answer

Asymptote is definitely a tool to look at, it can do nut just parametric surfaces, but graphs of functions, and I believe even isosurfaces, although I am not sure.

Take a look at sketch. It does not seem to be great at surfaces, though.

Metapost can do pretty interesting things, take a look at these examples.