Packagelaya.d3.resource.models
Classpublic class BoxMesh
InheritanceBoxMesh Inheritance laya.d3.resource.models.PrimitiveMesh

Sphere 类用于创建方体。



Public Properties
 PropertyDefined By
  height : Number
返回高度
BoxMesh
  long : Number
返回长度
BoxMesh
  width : Number
返回宽度
BoxMesh
Public Methods
 MethodDefined By
  
BoxMesh(long:Number = 1, width:Number = 1, height:int = 1)
创建一个方体模型
BoxMesh
Protected Methods
 MethodDefined By
  
[override]
BoxMesh
Property Detail
heightproperty
height:Number

返回高度


Implementation
    public function get height():Number
    public function set height(value:Number):void
longproperty 
long:Number

返回长度


Implementation
    public function get long():Number
    public function set long(value:Number):void
widthproperty 
width:Number

返回宽度


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
BoxMesh()Constructor
public function BoxMesh(long:Number = 1, width:Number = 1, height:int = 1)

创建一个方体模型

Parameters
long:Number (default = 1) — 半径
 
width:Number (default = 1) — 水平层数
 
height:int (default = 1) — 垂直层数
Method Detail
recreateResource()method
override protected function recreateResource():void