Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: Surfacecoloring of a sphere

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15785] Re: Surfacecoloring of a sphere
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Sun, 7 Feb 1999 02:04:02 -0500 (EST)
  • References: <79eb8g$9sk@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Florian Stock wrote in message <79eb8g$9sk at smc.vnet.net>...
>Hello,
>
>for visualization of an Satellite, i want to color the surface of a
>sphere (for the colors I have a function color[long,att] with long and
>att in a  range from 0 to 2 Pi).
>How can i coloring the sphere?
>I've tried with SphericalPlot3D and the ColorFunction option, with
>ParametricPlot3D, but I didn't found a way to color it.


Using ParametricPlot3D we can "paint in" colors using a formula in the
parameters as an optional extra to the point coordinates - but we must
turn off the Lighting to see the colors.

ParametricPlot3D[
{ Sin[lat] Cos[long], Sin[lat] Sin[long],Cos[lat],
 Hue[(long+lat)/(2Pi)]},
  {long,0,2Pi},{lat,0,2Pi},
Lighting ->False]

Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565






  • Prev by Date: Re: Finding real part (newbie question)
  • Next by Date: Re: BracketingBar for output
  • Previous by thread: Re: Surfacecoloring of a sphere
  • Next by thread: Re: Surfacecoloring of a sphere