4

If I type == moon texture map into Mathematica it sends a query to Wolfram Alpha and gives me the following output:

enter image description here

A 3D sphere with a moon surface texture is exactly what I was hoping for, but how can I get the code that was used to produce the moon textured sphere so that I can use it in my own code? Any help would be appreciated, thanks!

indigoblue
  • 439
  • 4
  • 11
  • 1
    img = WolframAlpha[ "moon surface map", {{"SurfaceMap:PlanetaryMoonData", 2}, "Content"}] – Bob Hanlon Aug 07 '15 at 17:41
  • 3
    You can also get the same 3D graphic from PlanetaryMoonData["Moon", "TexturedSurface"] without invoking WolframAlpha. Evaluate PlanetaryMoonData["Moon", "Properties"] for a list of other properties that you can obtain through that command. – MarcoB Aug 07 '15 at 20:21
  • @MarcoB, that's a very nice way of doing it. Do you know if this can be combined with a ParametricPlot3D command? – indigoblue Aug 07 '15 at 21:51
  • I'm not sure that I understand your question: what would be the parameter(s)? – MarcoB Aug 07 '15 at 22:09
  • 2
    You might want to take a look at the docs for Texture[]; there's a very relevant example there. You should be able to do something similar with the image you obtained from Alpha. – J. M.'s missing motivation Aug 07 '15 at 22:29
  • For example, could I combine ParametricPlot3D[{Cos[u], Sin[u], Cos[u]}, {u, 0, 2 Pi}] with your above code, so they show in the same plot. – indigoblue Aug 07 '15 at 22:30
  • @Guess who is it, brilliant examples in Texture[], just what I was looking for, thank you! – indigoblue Aug 07 '15 at 22:46

0 Answers0