C# 클래스 kdTree, KernelSanders

상속: MonoBehaviour
파일 보기 프로젝트 열기: jarllarsson/KernelSanders

공개 프로퍼티들

프로퍼티 타입 설명
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 p_objects, int p_dimsz, int p_dim, int p_idx, Vector3 pos, Vector3 parentSize, float p_cost ) : void
calculatePrimitiveCount ( Node, p_node, List p_objects, Vector3 p_leftBox, Vector3 p_rightBox, Vector3 p_leftBoxPos, Vector3 p_rightBoxPos, int &outLeftCount, int &outRightCount ) : void
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 p_objects, float p_splitpos, Vector3 p_axis, Vector3 p_currentSize, float p_currentArea, Vector3 p_currentPos, float &leftCost, float &rightCost ) : float
entrywiseMul ( Vector3 p_a, Vector3 p_b ) : Vector3
findOptimalSplitPos ( Node, p_node, List p_objects, AxisMark p_axis, Vector3 p_currentSize, float p_currentArea, Vector3 p_currentPos, float &outLeftCost, float &outRightCost, float &outCost ) : float
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

메소드 상세

OnDrawGizmos() 공개 메소드

public OnDrawGizmos ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

buildTree() 공개 메소드

public buildTree ( Node, p_node, List p_objects, int p_dimsz, int p_dim, int p_idx, Vector3 pos, Vector3 parentSize, float p_cost ) : void
p_node Node,
p_objects List
p_dimsz int
p_dim int
p_idx int
pos Vector3
parentSize Vector3
p_cost float
리턴 void

calculatePrimitiveCount() 공개 메소드

public calculatePrimitiveCount ( Node, p_node, List p_objects, Vector3 p_leftBox, Vector3 p_rightBox, Vector3 p_leftBoxPos, Vector3 p_rightBoxPos, int &outLeftCount, int &outRightCount ) : void
p_node Node,
p_objects List
p_leftBox Vector3
p_rightBox Vector3
p_leftBoxPos Vector3
p_rightBoxPos Vector3
outLeftCount int
outRightCount int
리턴 void

drawNode() 공개 메소드

public drawNode ( Vector3 pos, Vector3 parentSize, int idx ) : void
pos Vector3
parentSize Vector3
idx int
리턴 void

getChildVoxelsMeasurement() 공개 메소드

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

프로퍼티 상세

m_boxMax 공개적으로 프로퍼티

public Vector3 m_boxMax
리턴 Vector3

m_boxMin 공개적으로 프로퍼티

public Vector3 m_boxMin
리턴 Vector3

m_firstSplitDist 공개적으로 프로퍼티

public float m_firstSplitDist
리턴 float

m_intersectionCost 공개적으로 프로퍼티

public float m_intersectionCost
리턴 float

m_objects 공개적으로 프로퍼티

public List m_objects
리턴 List

m_traversalCost 공개적으로 프로퍼티

public float m_traversalCost
리턴 float

m_tree 공개적으로 프로퍼티

public List m_tree
리턴 List