Package | laya.d3.core.scene |
Class | public class OctreeNode |
Inheritance | OctreeNode Object |
Implements | ITreeNode |
Property | Defined By | ||
---|---|---|---|
_children : Vector.<OctreeNode> | OctreeNode | ||
debugMode : Boolean = false [static] 是否开启四/八叉树调试模式。 | OctreeNode | ||
exactBox : BoundBox | OctreeNode | ||
relaxBox : BoundBox | OctreeNode |
Method | Defined By | ||
---|---|---|---|
OctreeNode(scene:Scene, currentDepth:int) | OctreeNode | ||
addChild(index:int):OctreeNode | OctreeNode | ||
addNodeDown(render:BaseRender, depth:int):void | OctreeNode | ||
addNodeUp(render:BaseRender, depth:int):void | OctreeNode | ||
addObject(object:BaseRender):void | OctreeNode | ||
addTreeNode(render:BaseRender):void | OctreeNode | ||
buildAllChild(depth:int):void | OctreeNode | ||
clearObject():void | OctreeNode | ||
cullingObjects(boundFrustum:BoundFrustum, testVisible:Boolean, flags:int, cameraPosition:Vector3, projectionView:Matrix4x4):void | OctreeNode | ||
inChildIndex(objectCenter:Vector3):int | OctreeNode | ||
OctreeNode | |||
removeObject(object:BaseRender):Boolean | OctreeNode | ||
renderBoudingBox(linePhasor:PhasorSpriter3D):void | OctreeNode | ||
updateObject(render:BaseRender):void | OctreeNode |
_children | property |
public var _children:Vector.<OctreeNode>
debugMode | property |
public static var debugMode:Boolean = false
是否开启四/八叉树调试模式。
exactBox | property |
exactBox:BoundBox
public function get exactBox():BoundBox
public function set exactBox(value:BoundBox):void
relaxBox | property |
relaxBox:BoundBox
public function get relaxBox():BoundBox
public function set relaxBox(value:BoundBox):void
OctreeNode | () | Constructor |
addChild | () | method |
addNodeDown | () | method |
public function addNodeDown(render:BaseRender, depth:int):void
Parameters
render:BaseRender | |
depth:int |
addNodeUp | () | method |
addObject | () | method |
addTreeNode | () | method |
buildAllChild | () | method |
public function buildAllChild(depth:int):void
Parameters
depth:int |
clearObject | () | method |
public function clearObject():void
cullingObjects | () | method |
public function cullingObjects(boundFrustum:BoundFrustum, testVisible:Boolean, flags:int, cameraPosition:Vector3, projectionView:Matrix4x4):void
Parameters
boundFrustum:BoundFrustum | |
testVisible:Boolean | |
flags:int | |
cameraPosition:Vector3 | |
projectionView:Matrix4x4 |
inChildIndex | () | method |
init | () | method |
public function init(center:Vector3, treeSize:Vector3):void
Parameters
center:Vector3 | |
treeSize:Vector3 |
removeObject | () | method |
renderBoudingBox | () | method |
public function renderBoudingBox(linePhasor:PhasorSpriter3D):void
Parameters
linePhasor:PhasorSpriter3D |
updateObject | () | method |