Packagelaya.d3.resource.models
Classpublic class CylinderMesh
InheritanceCylinderMesh Inheritance laya.d3.resource.models.PrimitiveMesh

CylinderMesh 类用于创建圆柱体。



Public Properties
 PropertyDefined By
  height : Number
返回高度
CylinderMesh
  radius : Number
返回半径
CylinderMesh
  slices : int
获取宽度分段
CylinderMesh
Public Methods
 MethodDefined By
  
CylinderMesh(radius:Number = 0.5, height:Number = 2, slices:int = 32)
创建一个圆柱体模型
CylinderMesh
Protected Methods
 MethodDefined By
  
[override]
CylinderMesh
Property Detail
heightproperty
height:Number

返回高度


Implementation
    public function get height():Number
    public function set height(value:Number):void
radiusproperty 
radius:Number

返回半径


Implementation
    public function get radius():Number
    public function set radius(value:Number):void
slicesproperty 
slices:int

获取宽度分段


Implementation
    public function get slices():int
    public function set slices(value:int):void
Constructor Detail
CylinderMesh()Constructor
public function CylinderMesh(radius:Number = 0.5, height:Number = 2, slices:int = 32)

创建一个圆柱体模型

Parameters
radius:Number (default = 0.5) — 半径
 
height:Number (default = 2) — 高度
 
slices:int (default = 32) — 垂直层数
Method Detail
recreateResource()method
override protected function recreateResource():void