2D and 3D Function Graphing?

David Faught dave.faught at gmail.com
Fri Aug 25 12:49:30 UTC 2006


Rich Warren wrote:

>Are there any packages that handle 3d function graphing (like a
>graphing calculator).

Not that I know of.  There is a 2D data point plotter called PlotMorph
on SqueakMap at http://map1.squeakfoundation.org/packagesbyname

>I saw a sample here: http://minnow.cc.gatech.edu/squeak/3231, but he
>didn't say how the graphs were made. Is there an easy way to do this
>in Balloon?

The 2D WavyLines display was done with a series of simple open
PolygonMorphs which were scaled by the data series maximums and
minimums to fit the display area.  The 3D plot on the SWiki page you
referenced was done by constructing a triangle mesh from the data
points.  I copied one of the examples in the Balloon3D-Tutorial-Demos
(which is in the Squeak 3.8 "full" distribution) and modified it to
display my mesh.

You might also want to look at the PTexture.cs.gz example code towards
the bottom of the page at
http://minnow.cc.gatech.edu/croquet/ProceduralTextures which is a
fairly simple example of a contour plot.

>I also saw KGraph, but it won't install.

As Josh says, this is for a different class of graphs, not what you want to do.

>Function Plotters (http://mate.dm.uba.ar/~caniglia/Andres/
>fplot23.zip) also looks good, but it dies after trying to send
>messages to nil when I try to load it.

This does look pretty cool.  I suspect that it was written for a
different version of Squeak than you are running.  There could be some
other mismatch that is causing the undefined object reference.  Maybe
you could forward the entire walkback listing?  It should also be at
the end of the SqueakDebug.log in the Squeak base directory.

Cheers,
Dave



More information about the Squeak-dev mailing list