Packagelaya.d3.resource.models
Classpublic class PlaneMesh
InheritancePlaneMesh Inheritance laya.d3.resource.models.PrimitiveMesh

QuadMesh 类用于创建平面。



Public Properties
 PropertyDefined By
  long : Number
返回长度
PlaneMesh
  slices : int
获取宽度分段
PlaneMesh
  stacks : int
获取长度分段
PlaneMesh
  width : Number
返回宽度
PlaneMesh
Public Methods
 MethodDefined By
  
PlaneMesh(long:Number = 10, width:Number = 10, stacks:int = 10, slices:int = 10)
创建一个平面模型
PlaneMesh
Protected Methods
 MethodDefined By
  
[override]
PlaneMesh
Property Detail
longproperty
long:Number

返回长度


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

获取宽度分段


Implementation
    public function get slices():int
    public function set slices(value:int):void
stacksproperty 
stacks:int

获取长度分段


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

返回宽度


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
PlaneMesh()Constructor
public function PlaneMesh(long:Number = 10, width:Number = 10, stacks:int = 10, slices:int = 10)

创建一个平面模型

Parameters
long:Number (default = 10) — 长
 
width:Number (default = 10) — 宽
 
stacks:int (default = 10)
 
slices:int (default = 10)
Method Detail
recreateResource()method
override protected function recreateResource():void