MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: sphere coordinates???


In article <7b36fa$23r at smc.vnet.net>,
  "Ed Runco" <maddog at psu.edu> wrote:
> How do I specify the coordinates of a 3DGraphics Sphere?
>
> Ed
> maddog at psu.edu
>
>
Ed,

You have to use the command TranslateShape[ ].

See the below example of a sphere translated to x=2.5,y=0,z=0 and one at the
origin


In[1]:=
<<Graphics`Shapes`
In[2]:=
Show[
	{TranslateShape[Graphics3D[ Sphere[] ],{2.5, 0, 0}],
		Graphics3D[ Sphere[]]},
		Axes->True,PlotRange->{{-4,4},{-4,4},{-3,3}}]

Hope that helps

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


  • Prev by Date: Re: MathLink & Metrowerks CodeWarrior
  • Next by Date: Re: bitmaps disappearing
  • Previous by thread: sphere coordinates???
  • Next by thread: Mathematica for Alpha-Linux