Package | laya.d3.resource.models |
Class | public class SphereMesh |
Inheritance | SphereMesh laya.d3.resource.models.PrimitiveMesh |
Sphere
类用于创建球体。
Property | Defined By | ||
---|---|---|---|
radius : Number
返回半径
| SphereMesh | ||
slices : int
获取宽度分段
| SphereMesh | ||
stacks : int
获取高度分段
| SphereMesh |
Method | Defined By | ||
---|---|---|---|
SphereMesh(radius:Number = 0.5, stacks:int = 32, slices:int = 32)
创建一个球体模型
| SphereMesh |
Method | Defined By | ||
---|---|---|---|
recreateResource():void [override] | SphereMesh |
radius | property |
radius:Number
返回半径
public function get radius():Number
public function set radius(value:Number):void
slices | property |
slices:int
获取宽度分段
public function get slices():int
public function set slices(value:int):void
stacks | property |
stacks:int
获取高度分段
public function get stacks():int
public function set stacks(value:int):void
SphereMesh | () | Constructor |
public function SphereMesh(radius:Number = 0.5, stacks:int = 32, slices:int = 32)
创建一个球体模型
Parametersradius:Number (default = 0.5 ) — 半径
| |
stacks:int (default = 32 ) — 水平层数
| |
slices:int (default = 32 ) — 垂直层数
|
recreateResource | () | method |
override protected function recreateResource():void