Packagelaya.d3.resource.models
Classpublic class SphereMesh
InheritanceSphereMesh Inheritance laya.d3.resource.models.PrimitiveMesh

Sphere 类用于创建球体。



Public Properties
 PropertyDefined By
  radius : Number
返回半径
SphereMesh
  slices : int
获取宽度分段
SphereMesh
  stacks : int
获取高度分段
SphereMesh
Public Methods
 MethodDefined By
  
SphereMesh(radius:Number = 0.5, stacks:int = 32, slices:int = 32)
创建一个球体模型
SphereMesh
Protected Methods
 MethodDefined By
  
[override]
SphereMesh
Property Detail
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
stacksproperty 
stacks:int

获取高度分段


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

创建一个球体模型

Parameters
radius:Number (default = 0.5) — 半径
 
stacks:int (default = 32) — 水平层数
 
slices:int (default = 32) — 垂直层数
Method Detail
recreateResource()method
override protected function recreateResource():void