Packagelaya.d3.core
Classpublic class MeshFilter
InheritanceMeshFilter Inheritance GeometryFilter Inheritance EventDispatcher Inheritance Object

MeshFilter 类用于创建网格过滤器。



Public Properties
 PropertyDefined By
 Inheriteddestroyed : Boolean
[read-only] 获取是否已销毁。
GeometryFilter
  _isAsyncLoaded : Boolean
[override] [read-only]
MeshFilter
  _originalBoundingBox : BoundBox
[override] [read-only]
MeshFilter
  _originalBoundingBoxCorners : Array
[override] [read-only]
MeshFilter
  _originalBoundingSphere : BoundSphere
[override] [read-only]
MeshFilter
  sharedMesh : BaseMesh
获取共享网格。
MeshFilter
Public Methods
 MethodDefined By
  
创建一个新的 MeshFilter 实例。
MeshFilter
  
_destroy():void
[override]
MeshFilter
 Inherited
event(type:String, data:* = null):Boolean
派发事件。
EventDispatcher
 Inherited
hasListener(type:String):Boolean
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
EventDispatcher
 Inherited
isMouseEvent(type:String):Boolean
检测指定事件类型是否是鼠标事件。
EventDispatcher
 Inherited
off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher
从 EventDispatcher 对象中删除侦听器。
EventDispatcher
 Inherited
offAll(type:String = null):EventDispatcher
从 EventDispatcher 对象中删除指定事件类型的所有侦听器。
EventDispatcher
 Inherited
on(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher
使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知。
EventDispatcher
 Inherited
once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher
使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知,此侦听事件响应一次后自动移除。
EventDispatcher
Events
 Event Summary Defined By
  异步几何体资源加载完成时调度。MeshFilter
  更换sharedMesh时调度。MeshFilter
Property Detail
_isAsyncLoadedproperty
_isAsyncLoaded:Boolean  [read-only] [override]


Implementation
    public function get _isAsyncLoaded():Boolean
_originalBoundingBoxproperty 
_originalBoundingBox:BoundBox  [read-only] [override]


Implementation
    public function get _originalBoundingBox():BoundBox
_originalBoundingBoxCornersproperty 
_originalBoundingBoxCorners:Array  [read-only] [override]


Implementation
    public function get _originalBoundingBoxCorners():Array
_originalBoundingSphereproperty 
_originalBoundingSphere:BoundSphere  [read-only] [override]


Implementation
    public function get _originalBoundingSphere():BoundSphere
sharedMeshproperty 
sharedMesh:BaseMesh

获取共享网格。


Implementation
    public function get sharedMesh():BaseMesh
    public function set sharedMesh(value:BaseMesh):void
Constructor Detail
MeshFilter()Constructor
public function MeshFilter(owner:MeshSprite3D)

创建一个新的 MeshFilter 实例。

Parameters
owner:MeshSprite3D — 所属网格精灵。
Method Detail
_destroy()method
override public function _destroy():void

Event Detail
loaded Event
Event Object Type: laya.events.Event
Event.type property = Event.LOADED

异步几何体资源加载完成时调度。

meshchanged Event  
Event Object Type: laya.events.Event
Event.type property = Event.MESH_CHANGED

更换sharedMesh时调度。