Sign in to follow this  
jerome

Mõbius fun

Recommended Posts

Hi,

 

Before porting the ribbon mesh to TS and daring a first PR attempt (kind of stage fright :wacko: ), I'm stressing the model to test the design.

Found something fun (to me) with the Möbius ribbon :

As you know, the Möbius ribbon has got only one face. So it means, it has got only one edge too.

 

So this may be a good test for ribbonMesh.

 

Let's go : http://www.babylonjs-playground.com/#10JFPK#1

Here's the equation of a Möbius edge. Only one curve path1, drawn with Createlines("möbius", path1, scene), line 35.

 

Let's ribbonize this single path, with no offset parameter, so it will be set to half size of the path length (line 36) :

createRibbon(mesh7, [path1], false, false, null, scene);

http://www.babylonjs-playground.com/#10JFPK#2

 

 

:) :) :)  it works !!!

 

If we give it a colored standard material, we get : http://www.babylonjs-playground.com/#10JFPK#3

As you can see, the junction is visible.

This is due to the fact that the normals are computed only for one face of each fragment (this is WebGL)... and the Möbius ribbon has got only one continuous face, so we can see the front face joining the back face. ;)

 

That's all, folks.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.