Search code examples
three.jsbabylonjs

Drawing custom shapes in Babylon.js


I have been searching all over the web for a way to draw custom 3d shapes in babylon.js. I would be grateful if somebody could provide a working example. For instance, a 3d irregular pentagon, triangle fan, or a wedge.


Solution

  • you can find a lot of info about parametric shapes in Babylon.js here: http://doc.babylonjs.com/page.php?p=24847

    And mainly for the ribbon here: http://doc.babylonjs.com/page.php?p=25088