g3d Version Alpha 1.0
Graphs regions of form
Available Functions: (as of now):
- sin(), cos(), tan(), acos(), asin(), atan() -arguments in radians
- Hyperbolic Functions - sinc(), ctan(), actan();
- sqrt, sqr, exp, log, ln.
Type in the functions you want to graph
Click the Plot Button
Drag the mouse in the plot area to rotate the graph.
This applet might take a minute to load, please be patient, it's worth
Single/Double Z: Toggles between 1 and
2 surfaces to Plot
If the value is set to Double, and both z1(x,y) and z2(x,y) are defined,
it calculates volume using the Rieman sum
As Meshing gets better (see "Finer Grid" button) it gets more
Plot: Plots the current functions in the
Refresh - fixes colors so that the Red
component reflects elevation
Finer Grid: Remeshes the object with smaller
Warning: Will look much nicer, but object will take longer to rotate
Wider Grid:Remeshes object with wider
Will look rougher, but will rotate much faster
Help gives list of available functions
as well as the "About"
The demo functions might help if you are having trouble
with the syntax or something.
Note: If one of the dimensions (notably Z) is very big comparative to the
others, the object might appear as a point due to scaling and round-off
for now you just have to adjust the limits appropriatly.
The Source Code:
This program breaks down into 2 parts: parsing the expression and
graphing it. I only did the graphing.Function parsing was done using the
classes written by David Wanqian Liu. Check out his applet The
Graphing done using a rectangular mesh and polygons plotted using a simple