# \[99% SOLVED\]Klein Bottle rendering?

**URL:** <https://discourse.processing.org/t/99-solved-klein-bottle-rendering/2262>\
**Category:** Coding Questions\
**Created:** [August 1, 2018, 8:49am UTC](https://discourse.processing.org/t/99-solved-klein-bottle-rendering/2262 "2018-08-01T08:49:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [August 1, 2018, 8:49am UTC](https://discourse.processing.org/t/99-solved-klein-bottle-rendering/2262/1 "2018-08-01T08:49:44Z")

</div>

i wanted to test the math i found at internet and draw a  
KLEIN BOTTLE  
and i try to render it by  
KleinS.beginShape(TRIANGLE\_STRIP);  
KleinS.vertex(xs, ys, zs);  
KleinS.vertex(xs+1, ys+1, zs+1);  
and i got something what looks like i am close,  
but not know if my math, my loops or my shape vertex are wrong.

if someone has a idea ( and want to take a look ) pls find  
[klein test](http://kll.engineering-news.org/kllfusion01/articles.php?article_id=154#here6)

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [September 7, 2018, 5:52am UTC](https://discourse.processing.org/t/99-solved-klein-bottle-rendering/2262/2 "2018-09-07T05:52:07Z")

</div>

Hi kll,

Can you please copy/paste the code you are using to generate your klein bottle?

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [September 7, 2018, 8:29am UTC](https://discourse.processing.org/t/99-solved-klein-bottle-rendering/2262/3 "2018-09-07T08:29:55Z")

</div>

did you follow my link?

sorry, it is a TAB in a 3D show project (PTZ) for some example objects,  
better you take the whole code from [here](http://kll.engineering-news.org/kllfusion01/downloads.php?cat_id=4&download_id=48)  
and try to remove what you not need.

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [September 7, 2018, 8:50am UTC](https://discourse.processing.org/t/99-solved-klein-bottle-rendering/2262/4 "2018-09-07T08:50:03Z")

</div>

I did follow your link but you might want to post an [MCVE](https://stackoverflow.com/help/mcve) here.

You would have better chance to get answers!

Not so many users will bother dealing with full lenght code, trying to remove everything that is not needed. That’s actually your job 🙂

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [September 7, 2018, 8:56am UTC](https://discourse.processing.org/t/99-solved-klein-bottle-rendering/2262/5 "2018-09-07T08:56:32Z")

</div>

dear @jb4x  
sorry for the miss understanding, i was thinking you are interested in that code.

i hoped that the [99% SOLVED] indicates that that is not a open question anymore.

thanks anyway that you try to help, and now i understand. b.r. KLL

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [September 7, 2018, 9:00am UTC](https://discourse.processing.org/t/99-solved-klein-bottle-rendering/2262/6 "2018-09-07T09:00:08Z")

</div>

Hoo sorry for that 😉

I thought that you had a previous issue that you managed to fixed partially and you were still looking for some help!

Thanks for sharing then 👍  
And again, my apologies!
