jerome Posted April 2, 2015 Share Posted April 2, 2015 Hi people, I just PR a new very simple, but useful (I hope), basic shape : plane discvar disc = BABYLON.Mesh.CreateDisc("disc", radius, tessellation, scene);This just creates ... a plane disc mesh.Or an ellipsoid plane, if you start to play with scaling properties :disc.scaling.x = 2;disc.scaling.y = 0.5;Actually, it creates any regular polygon according to the tessellation value :3 is a triangle,4 a square,5 a pentagon,6 a hexagon, 7 a heptagon, 8 an octogon, and so on ... I did it just because I needed it.I hope it will be helpful to other people too. [under the hood : for those wanting to hack and manually morph, the first vertex is the disc center] Quote Link to comment Share on other sites More sharing options...
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.