[pstricks] Drawing a Klein Bottle

Oliver Schmitt schmitt at med.uni-rostock.de
Wed Jan 30 18:57:14 CET 2013


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



Am 30.01.2013 17:29, schrieb Rich Shepard:
>   Several months ago I found a nice image of a Klein bottle drawn with
> gnuplot, but the code was no longer available on the Web. So I
> searched for
> PSTricks code to draw one rather than re-inventing the wheel, but did not
> find any.
>
>   Has anyone drawn such an image with PSTricks? If so, may I use and
> modify
> the code? If not, please pass me a pointer where I should start to create
> this image. The gnuplot version is attached as a .jpg file.
>
> TIA,
>
> Rich
>
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20130130/765f79d4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: schmitt.vcf
Type: text/x-vcard
Size: 310 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20130130/765f79d4/attachment.vcf>


More information about the PSTricks mailing list