Package | laya.d3.resource.models |
Class | public class PlaneMesh |
Inheritance | PlaneMesh laya.d3.resource.models.PrimitiveMesh |
QuadMesh
类用于创建平面。
Property | Defined By | ||
---|---|---|---|
long : Number
返回长度
| PlaneMesh | ||
slices : int
获取宽度分段
| PlaneMesh | ||
stacks : int
获取长度分段
| PlaneMesh | ||
width : Number
返回宽度
| PlaneMesh |
Method | Defined By | ||
---|---|---|---|
PlaneMesh(long:Number = 10, width:Number = 10, stacks:int = 10, slices:int = 10)
创建一个平面模型
| PlaneMesh |
Method | Defined By | ||
---|---|---|---|
recreateResource():void [override] | PlaneMesh |
long | property |
long:Number
返回长度
public function get long():Number
public function set long(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
width | property |
width:Number
返回宽度
public function get width():Number
public function set width(value:Number):void
PlaneMesh | () | Constructor |
public function PlaneMesh(long:Number = 10, width:Number = 10, stacks:int = 10, slices:int = 10)
创建一个平面模型
Parameterslong:Number (default = 10 ) — 长
| |
width:Number (default = 10 ) — 宽
| |
stacks:int (default = 10 )
| |
slices:int (default = 10 )
|
recreateResource | () | method |
override protected function recreateResource():void