Klein Bottle

72 views
Skip to first unread message

thomas...@verizon.net

unread,
Aug 14, 2021, 9:05:25 PM8/14/21
to glowscri...@googlegroups.com
Is it possible to "build" a Klein Bottle representation with GlowScript? If I can do this, can I then animate a stroll around the surface? A Klein Bottle is a surface, with no thickness, no inside or outside, and no volume. The three dimensional version has to pierce itself, to simulate the missing fourth dimension required to display one-surfaceness without holes. 

I'm gnu to GlowScript and VPython. Il I knew (a lot?) more, I could probably answer this question. 

Bruce Sherwood

unread,
Aug 15, 2021, 1:00:32 AM8/15/21
to Glowscript Users
Yes, you can in principle do that, but it will be very difficult. You would have to position a large number of triangles, each defined by three vertices, with adjacent triangles sharing vertices. It's easy to make a triangle transparent, but it's hard to calculate the 3D positions of the vertices. 

And yes, you could wander all over the surface, but again it will not be easy to move the "camera" correctly over such a complex surface. 

To see some simpler examples of such things, at GlowScript.org click "Example programs" and run these programs: Rug, Plot3D, and Stonehenge-VPython. Play with the camera controls. Examine the code for these examples. For documentation on vertex and triangle objects, see

   
Bruce

Bruce Sherwood

unread,
Aug 30, 2021, 4:59:17 PM8/30/21
to Glowscript Users
I was wrong. It is possible to make a Klein bottle out of an extrusion object:


But I still think that flying over its surface will be somewhat challenging.

Bruce

Zeger Hendrikse

unread,
Jan 21, 2025, 7:52:07 AMJan 21
to Glowscript Users
Hi everyone,

I don't know if anyone else has already "solved" this challenge, but I just have: Klein's bottle.

There are still some details that could be improved, such as the "stitching" and the lights.
Does anybody feel like helping me out with these details, perhaps? I'm struggling a bit  ;-)

I'll start a new conversation anyhow, as this one is pretty old.

Kind regards,

Zeger.

Op maandag 30 augustus 2021 om 22:59:17 UTC+2 schreef Bruce Sherwood:
Reply all
Reply to author
Forward
0 new messages