프로퍼티 | 타입 | 설명 | |
---|---|---|---|
m_boxMax | Vector3 | ||
m_boxMin | Vector3 | ||
m_firstSplitDist | float | ||
m_intersectionCost | float | ||
m_objects | List |
||
m_traversalCost | float | ||
m_tree | List |
메소드 | 설명 | |
---|---|---|
OnDrawGizmos ( ) : void | ||
Start ( ) : void | ||
Update ( ) : void | ||
buildTree ( Node, p_node, List | ||
calculatePrimitiveCount ( Node, p_node, List | ||
drawNode ( Vector3 pos, Vector3 parentSize, int idx ) : void | ||
getChildVoxelsMeasurement ( float p_inSplitpos, Vector3 p_axis, Vector3 p_inParentSize, Vector3 &outLeftSz, Vector3 &outRightSz ) : void |
메소드 | 설명 | |
---|---|---|
calculateArea ( Vector3 p_extents ) : float | ||
calculatecost ( Node, p_node, List | ||
entrywiseMul ( Vector3 p_a, Vector3 p_b ) : Vector3 | ||
findOptimalSplitPos ( Node, p_node, List | ||
getLeftExtreme ( GameObject p_obj, Vector3 p_axis, Vector3 p_parentPos ) : float | ||
getRightExtreme ( GameObject p_obj, Vector3 p_axis, Vector3 p_parentPos ) : float | ||
objIntersectNode ( object p_obj, Vector3 pos, Vector3 parentSize ) : bool |
public buildTree ( Node, p_node, List | ||
p_node | Node, | |
p_objects | List | |
p_dimsz | int | |
p_dim | int | |
p_idx | int | |
pos | Vector3 | |
parentSize | Vector3 | |
p_cost | float | |
리턴 | void |
public calculatePrimitiveCount ( Node, p_node, List | ||
p_node | Node, | |
p_objects | List | |
p_leftBox | Vector3 | |
p_rightBox | Vector3 | |
p_leftBoxPos | Vector3 | |
p_rightBoxPos | Vector3 | |
outLeftCount | int | |
outRightCount | int | |
리턴 | void |
public drawNode ( Vector3 pos, Vector3 parentSize, int idx ) : void | ||
pos | Vector3 | |
parentSize | Vector3 | |
idx | int | |
리턴 | void |
public getChildVoxelsMeasurement ( float p_inSplitpos, Vector3 p_axis, Vector3 p_inParentSize, Vector3 &outLeftSz, Vector3 &outRightSz ) : void | ||
p_inSplitpos | float | |
p_axis | Vector3 | |
p_inParentSize | Vector3 | |
outLeftSz | Vector3 | |
outRightSz | Vector3 | |
리턴 | void |