AngiB Posted July 20, 2016 Share Posted July 20, 2016 Hi, I want to create a tube with two kinks. However the radius near the kinks is different to my defined radius in the CreateTube function. I would expect a constant radius .Here is a playground example: http://www.babylonjs-playground.com/#1EX6VF Furthermore, if I reduce the distance between the kinks I get a strange effect: http://www.babylonjs-playground.com/#1EX6VF#6 I`m using BabylonJS version 2.4. Thanks for your help Quote Link to comment Share on other sites More sharing options...
jerome Posted July 20, 2016 Share Posted July 20, 2016 The CreateTube() function uses an algo to smoothly twist the tube according to its curves. In your case, the "curve" (or path) is really rough because it has only 4 points, what leads to really extreme twisting effects. I would suggest that you add far more points (maybe a sinus curve over an angle of PI / 2) to define something more smooth. Quote Link to comment Share on other sites More sharing options...
AngiB Posted July 21, 2016 Author Share Posted July 21, 2016 I add some points near the kinks. It works! Thank You! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.