Package | laya.d3.resource.models |
Class | public class BoxMesh |
Inheritance | BoxMesh laya.d3.resource.models.PrimitiveMesh |
Sphere
类用于创建方体。
Property | Defined By | ||
---|---|---|---|
height : Number
返回高度
| BoxMesh | ||
long : Number
返回长度
| BoxMesh | ||
width : Number
返回宽度
| BoxMesh |
Method | Defined By | ||
---|---|---|---|
BoxMesh(long:Number = 1, width:Number = 1, height:int = 1)
创建一个方体模型
| BoxMesh |
Method | Defined By | ||
---|---|---|---|
recreateResource():void [override] | BoxMesh |
height | property |
height:Number
返回高度
public function get height():Number
public function set height(value:Number):void
long | property |
long:Number
返回长度
public function get long():Number
public function set long(value:Number):void
width | property |
width:Number
返回宽度
public function get width():Number
public function set width(value:Number):void
BoxMesh | () | Constructor |
public function BoxMesh(long:Number = 1, width:Number = 1, height:int = 1)
创建一个方体模型
Parameterslong:Number (default = 1 ) — 半径
| |
width:Number (default = 1 ) — 水平层数
| |
height:int (default = 1 ) — 垂直层数
|
recreateResource | () | method |
override protected function recreateResource():void