Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9868 > unrolled thread
| Started by | James <icorone@hotmail.com> |
|---|---|
| First post | 2012-04-29 06:11 +0000 |
| Last post | 2012-04-29 06:11 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Displaying contours over normal Riemann surfaces James <icorone@hotmail.com> - 2012-04-29 06:11 +0000
| From | James <icorone@hotmail.com> |
|---|---|
| Date | 2012-04-29 06:11 +0000 |
| Subject | Displaying contours over normal Riemann surfaces |
| Message-ID | <jnim2t$akd$1@smc.vnet.net> |
Hi,
The code below draws a simple figure-8 contour in the complex z-plane, then by steriographic projection, maps it to a Riemann sphere as a yellow contour over the sphere. I have a red contour drawn from the points -1 to 1 on the sphere to represent a branch cut. I believe it's possible to "open up" the sphere along the red contour, and deform it into a half-sphere with the red contour along the hemisphere edge. Could someone help me write that code?
Thank you,
James
mySphereX[x_, y_] := (2*x)/(1 + x^2 + y^2);
mySphereY[x_, y_] := (2*y)/(1 + x^2 + y^2);
mySphereZ[x_, y_] := (x^2 + y^2 - 1)/(1 + x^2 + y^2);
myx[t_] := 2*Sin[t];
myy[t_] := 2*Cos[t]*Sin[t];
pp1 = ParametricPlot3D[{mySphereX[myx[t], myy[t]], mySphereY[myx[t], myy[t]], mySphereZ[myx[t], myy[t]]}, {t, 0, 2*Pi},
PlotStyle -> {Thickness[0.005], Yellow}]
pp3 = ParametricPlot3D[{mySphereX[x, 0], mySphereY[x, 0], mySphereZ[x, 0]}, {x, -1, 1},
PlotStyle -> {Thickness[0.005], Red}]
myplane = Graphics3D[{Opacity[0.5], Polygon[{{2, 2, 0}, {-2, 2, 0}, {-2, -2, 0}, {2, -2, 0}}]}];
Show[{myplane, pp1, pp3, SphericalPlot3D[1, {\[Theta], 0, Pi}, {\[Phi], 0, 2*Pi}, PlotStyle -> Opacity[0.5]]}]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web