Assuming that you want to revolve this around the Y-axis I'd create a parametric surface in Gizmo. Here is an example. Suppose your function has the form:
Function fr(inr,rmax)Variable inr,rmax
Variable x2=inr/rmax
returnsqrt(1-x2*x2)End
I'd create a parametric surface of the desired resolution, e.g.,
With all due respect to the Gizmo-meister, A.G., my preference (with more tutorial transparency) for the parametric Gizmo surface would be expressed in terms of the rotation angle as one parameter, and the function argument axis as the other, as in:
function foo( rin, rmax)variable rin, rmax
variable rho = rin/rmax
return(cos(2*pi*rho))^2endfunction show()variable rmax =10make/O/N=(90, 100, 3) wsurf
setscale/Ix, 0, 2*pi,"" wsurf
setscaley, 0, rmax, "" wsurf
wsurf[][][0] = cos(x)*y
wsurf[][][1] = sin(x)*y
wsurf[][][2] = foo(y, rmax)// use this as// a parametric surface for Gizmoend
I'd create a parametric surface of the desired resolution, e.g.,
Now create a new Gizmo and append a parametric surface. You can do so manually or simply execute the following recreation macro:
I hope this helps,
A.G.
WaveMetrics, Inc.
August 15, 2013 at 09:47 am - Permalink
August 15, 2013 at 11:35 am - Permalink