[pstricks] Drawing a Klein Bottle
Rich Shepard
rshepard at appl-ecosys.com
Wed Jan 30 21:12:22 CET 2013
On Wed, 30 Jan 2013, Oliver Schmitt wrote:
> set parametric
> x(u,v)= v<2*pi ? (2.5-1.5*cos(v))*cos(u) : \
> v<3*pi ? -2+(2+cos(u))*cos(v) : \
> -2+2*cos(v)-cos(u)
> y(u,v)= v<2*pi ? (2.5-1.5*cos(v))*sin(u) : \
> sin(u)
> z(u,v)= v<pi ? -2.5*sin(v) : \
> v<2*pi ? 3*v-3*pi : \
> v<3*pi ? (2+cos(u))*sin(v)+3*pi : \
> -3*v+12*pi
> splot x(u,v),y(u,v),-z(u,v) w pm3d
Thank you, Oliver! I'll study this to be sure that I understand it well.
Much appreciated,
Rich
More information about the PSTricks
mailing list