[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*Subject*: Re: Creating a sphere (Object Graphics)*From*: "Jason P. Meyers" <jpm7934(at)cis.rit.edu>*Date*: Mon, 29 Jan 2001 13:05:05 -0500*Newsgroups*: comp.lang.idl-pvwave*Organization*: Rochester Institute of Technology*References*: <3A75ABC0.281B8C4D@cis.rit.edu>*XPident*: jbppph*XPident*: Unknown*Xref*: news.doit.wisc.edu comp.lang.idl-pvwave:23283

OK, I hate editors that don't warn you about breaking long lines. The following lines should all be a single line in the IDL procedure. Most are just comment lines, but two are actual lines of code. Sorry for any confusions this may have caused! Jason "Jason P. Meyers" wrote: > > > PRO JPM_Make_Sphere, n, x=x, y=y, z=z > The following pairs of lines should have been left together as one > ; Parameter: n : array width (must be odd, but we'll make it odd if >it's not) > ; Keywords: x,y,z : named variables to contain the 2-D arrays (n x >2n-1) > ; Tweeking the value of m adjusts the spacing of points along the > z-profile. > x1 = cos(atan(yy,xx))*(sqrt(abs(1-(1-abs(xx))^m)) > > sqrt(abs(1-(1-abs(yy))^m))) > y1 = sin(atan(yy,xx))*(sqrt(abs(1-(1-abs(xx))^m)) > > sqrt(abs(1-(1-abs(yy))^m)))

**References**:**Creating a sphere (Object Graphics)***From:*Jason P. Meyers

- Prev by Date:
**HELP: Linux can't run IDL_LMGRD** - Next by Date:
**Re: HELP: Linux can't run IDL_LMGRD** - Prev by thread:
**Re: Creating a sphere (Object Graphics)** - Next by thread:
**HELP: Linux can't run IDL_LMGRD** - Index(es):