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