From: Matthew K. <koh...@an...> - 2001-07-30 20:58:35
|
On Wednesday, July 25, 2001 17:13 -0400, Ari Heitner wrote: > Playing with Scherer's Mesh class based on the faces object, I realized > that drawing heightfield meshes might be a pretty common application. I agree, and I've actually been playing around with this for a few weeks. Attached are two programs that plot wireframe surfaces constructed out of curve objects. The first, wireframe_heightfield.py, allows the user to input a function of x and y which is plotted as a heightfield. The second, wireframe_parametric.py, plots a series of parametric curves based on a vector function. It can produce closed surfaces like spheres, ellipsoids, cones, etc., depending on the vector function. Of course, these programs suffer from the fact that they produce wireframe outputs, which do not provide the 3D visual cues that smooth surfaces do. But it may be useful to Ari, David, and others working on this problem to take a look at the way these programs do the math to plot surfaces. In any case, anyone is free to use them in any way they wish. -Matt |