Advertisement
Matthen

Loxodrome Shadow

Jan 13th, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. frame[\[Theta]_] := Rasterize@Module[{m, pp, umax, pr},
  2. m = 0.45;
  3. pp = 30;
  4. umax = 0.8;
  5. range = 2.8;
  6. pr = {{-range, range}, {-range, range}, {-1.1, 1.1}};
  7. texture = ParametricPlot[
  8. proj[
  9. RotationMatrix[\[Theta] + 0.5, {1, 0, 0}].RotationMatrix[
  10. u, {0, 0, 1}].loxodrome[\[Lambda], m, 0]]
  11. , {u, 0, umax}, {\[Lambda], -10, 10}, PlotRange -> 3,
  12. Mesh -> False,
  13. PlotStyle -> Directive[RGBColor[0.15, 0.18, 0.5], Opacity[0.5]],
  14. BoundaryStyle -> None, Frame -> None, Axes -> None,
  15. PlotPoints -> pp, Background -> RGBColor[0.8, 0.8, 0.9]];
  16. Show[
  17. Graphics3D[{RGBColor[0.1, 0.6, 0.7], Opacity[0.2], Sphere[],
  18. {Opacity[1.0], Texture[texture],
  19. Polygon[{{-3, -3, -1}, {3, -3, -1}, {3, 3, -1}, {-3, 3, -1}},
  20. VertexTextureCoordinates -> {{0, 0}, {1, 0}, {1, 1}, {0, 1}}]}
  21. }, Lighting -> "Neutral", PlotRange -> pr, Boxed -> False],
  22. ParametricPlot3D[
  23. {
  24. RotationMatrix[\[Theta] + 0.5, {1, 0, 0}].RotationMatrix[
  25. u, {0, 0, 1}].loxodrome[\[Lambda], m, 0]
  26. }
  27. , {\[Lambda], -10, 10}, {u, 0, umax}, PlotRange -> pr,
  28. PlotPoints -> pp, Mesh -> False, PlotStyle -> Darker@Red,
  29. BoundaryStyle -> None], ImageSize -> 300]
  30. ];
  31. frame[1.07]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement