BabylonJS - Disc



This is one of the shapes used with the MeshBuilder.

Syntax

Following is the syntax to create a Disc −

var disc = BABYLON.MeshBuilder.CreateDisc("disc", {radius, tessellation: 3, arc, updatable}, scene);

Parameters

Consider the following parameters to create a disc −

  • Radius − Radius of the disc or polygon.

  • Tessellation − Number of disc/polygon sides.

  • Arc − Ratio of the circumference between 0 and 1.

  • Updatable − By default, set to false.If it needs to be updated during morphing, you can set it to true.

babylonjs_mesh.htm
Advertisements