| Package | laya.d3.resource.models |
| Class | public class BaseMesh |
| Inheritance | BaseMesh laya.resource.Resource |
| Subclasses | Mesh |
BaseMesh 类用于创建网格,抽象类,不允许实例。
| Property | Defined By | ||
|---|---|---|---|
| boundingBox : BoundBox [read-only]
获取AABB包围盒,禁止修改其数据。
| BaseMesh | ||
| boundingBoxCorners : Array [read-only]
获取包围球顶点,禁止修改其数据。
| BaseMesh | ||
| boundingSphere : BoundSphere [read-only]
获取包围球,禁止修改其数据。
| BaseMesh | ||
| positions : Array [read-only]
获取网格顶点,请重载此方法。
| BaseMesh | ||
| subMeshCount : int [read-only]
获取SubMesh的个数。
| BaseMesh | ||
| Method | Defined By | ||
|---|---|---|---|
BaseMesh()
创建一个 BaseMesh 实例。
| BaseMesh | ||
getRenderElement(index:int):IRenderable
获取渲染单元,请重载此方法。
| BaseMesh | ||
getRenderElementsCount():int
获取渲染单元数量,请重载此方法。
| BaseMesh | ||
| boundingBox | property |
boundingBox:BoundBox [read-only] 获取AABB包围盒,禁止修改其数据。
public function get boundingBox():BoundBox| boundingBoxCorners | property |
boundingBoxCorners:Array [read-only] 获取包围球顶点,禁止修改其数据。
public function get boundingBoxCorners():Array| boundingSphere | property |
boundingSphere:BoundSphere [read-only] 获取包围球,禁止修改其数据。
public function get boundingSphere():BoundSphere| positions | property |
positions:Array [read-only] 获取网格顶点,请重载此方法。
public function get positions():Array| subMeshCount | property |
subMeshCount:int [read-only] 获取SubMesh的个数。
public function get subMeshCount():int| BaseMesh | () | Constructor |
public function BaseMesh()
创建一个 BaseMesh 实例。
| getRenderElement | () | method |
public function getRenderElement(index:int):IRenderable获取渲染单元,请重载此方法。
Parameters
index:int — 索引。
|
IRenderable — 渲染单元。
|
| getRenderElementsCount | () | method |
public function getRenderElementsCount():int获取渲染单元数量,请重载此方法。
Returnsint — 渲染单元数量。
|