- BabylonJS 教程
- BabylonJS - 首頁
- BabylonJS - 簡介
- BabylonJS - 環境設定
- BabylonJS - 概述
- BabylonJS - 基本元素
- BabylonJS - 材質
- BabylonJS - 動畫
- BabylonJS - 相機
- BabylonJS - 光源
- BabylonJS - 引數化形狀
- BabylonJS - 網格
- 向量位置和旋轉
- BabylonJS - 貼花
- BabylonJS - Curve3 曲線
- BabylonJS - 動態紋理
- BabylonJS - 視差對映
- BabylonJS - 鏡頭光暈
- BabylonJS - 建立螢幕截圖
- BabylonJS - 反射探針
- 標準渲染管道
- BabylonJS - 著色器材質
- BabylonJS - 骨骼和骨架
- BabylonJS - 物理引擎
- BabylonJS - 播放聲音和音樂
- BabylonJS 有用資源
- BabylonJS - 快速指南
- BabylonJS - 有用資源
- BabylonJS - 討論
BabylonJS - 光碟
這是 MeshBuilder 中使用的一種形狀。
語法
以下是建立光碟的語法 -
var disc = BABYLON.MeshBuilder.CreateDisc("disc", {radius, tessellation: 3, arc, updatable}, scene);
引數
考慮以下引數來建立光碟 -
半徑 - 光碟或多邊形的半徑。
細分 - 光碟/多邊形面的數量。
圓弧 - 0 到 1 之間的圓周率。
可更新 - 預設情況下,設定為 false。如果需要在變形過程中更新,可將其設定為 true。
babylonjs_mesh.htm
廣告