in reply to Re: Kings Dream
in thread Kings Dream

How to you propose mapping his 2D points into the 3D space? That's non-trivial...unless perhaps the equations already have a Nth-dimensional variant.

(Though I do agree the 3D OpenGL plotter from PDL is really awesome -- it puts Maple, Matlab, etc to shame)

Replies are listed 'Best First'.
Re: Re: Re: Kings Dream
by zentara (Cardinal) on Mar 02, 2004 at 15:24 UTC
    Probably some sort of parametric equations, like they show in the example 1, notice it all is derived from x and y
    $size = 25; $x = (xvals zeroes $size+1,$size+1) / $size; $y = (yvals zeroes $size+1,$size+1) / $size; $z = 0.5 + 0.5 * (sin($x*6.3) * sin($y*6.3)) ** 3; # Bumps imag3d [$x,$y,$z]; # Draw a shaded surface

    I'm not really a human, but I play one on earth. flash japh