BabylonJS - Torus
This is one of the shapes used with the MeshBuilder.
Syntax
Following is the syntax to create torus −
var torus = BABYLON.MeshBuilder.CreateTorus("torus", {diameter, thickness: 0.2, tessellation, updatable}, scene);
Parameters
Consider the following parameters to create a torus −
Diameter − Diameter of the torus.
Thickness − Thickness of its tube.
Tessellation − Number of segments along the circle.
Updatable − By default, set to false.If it needs to be updated during morphing, you can set it to true.
babylonjs_mesh.htm
Advertisements