I have this simple torus

\psset{viewpoint=30 10 25 rtp2xyz,Decran=30,lightsrc=viewpoint}
\psSolid[object=tore,r1=2.5,r0=1.0,ngrid=36 72,fillcolor=blue!30,grid=false]%
\end {center}

as depicted,

enter image description here

It is parallel to x-y plane; aligned to z-axis at its centre. (Light source could be not in its best point, though.)

I need to draw over it its cross sections in contour forms parallel to yz - plane (or xz - plane); that is, contours in direction of x. I'll be obliged for any hint.

Most inspiring camera point is where it can show contours at the very inner points before separation into two lobes.

Contours are famous spiric sections (r2 - a2 + c2 + x2 + y2)2 = 4r2(x2 + c2), where, c is the contours parameter, and the torus is formed from a circle of radius a whose centre is rotated along a circle of radius r.

enter image description here

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.