[pstricks] pst-3Dplot
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Thu Sep 24 23:12:45 CEST 2009
Patrice Mégret schrieb:
> In the attached files you will find the transformation from the proposed spherical coordinates to (x,y,z). Then from (x,y,z) to (x2d,y2d) it is your subroutines depending on CoorType key.
>
> In fact the spherical coordinate system used in electromagnetism (r,theta_2,phi_2) is nearly the same as the one you used (r,phi_1,theta_1) except that (1) latitude is measured from the z-axis and from not the xy plane, and (2) the order is r, theta_2, phi_2 and not r, phi_1, theta_1.
>
> This change also implies theta_2=pi/2 -theta_1.
Patrice,
try
it with the pst-3dplot.pro from here
http://voss.homedns.org/packages/pst-3dplot/
you have to set \psset{coorType=5}, then the conversion
of spherical to cartesian is done in your way. Hopefully ...
Herbert
More information about the PSTricks
mailing list