engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Public 属性 | 所有成员列表
TkDOPNode< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > 模板结构体 参考

A node in the kDOP tree. 更多...

#include <kDOP.h>

Public 类型

typedef COLL_DATA_PROVIDER DataProviderType
 Exposes data provider type to clients.
 
typedef TkDOPNode< DataProviderType, KDOP_IDX_TYPE > NodeType
 Exposes node type to clients.
 

Public 成员函数

bool LineCheck (TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > &Check, TTraversalHistory< KDOP_IDX_TYPE > History) const
 Determines the line in the FkDOPLineCollisionCheck intersects this node. 更多...
 
FORCEINLINE void LineCheckBounds (TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > &Check, FVector4 &HitTime, int32 NodeHit[4]) const
 The slab testing algorithm is based on the following papers. 更多...
 
bool LineCheckPreCalculated (TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > &Check, const FVector4 &NodeHitTime, TTraversalHistory< KDOP_IDX_TYPE > History, int32 *NodeHit) const
 Determines the line in the FkDOPLineCollisionCheck intersects this node. 更多...
 
bool LineCheckTriangles (TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > &Check, const TTraversalHistory< KDOP_IDX_TYPE > &History) const
 Works through the list of triangles in this node checking each one for a collision. 更多...
 
FBox SplitTriangleList (int32 Start, int32 NumTris, TArray< FkDOPBuildCollisionTriangle< KDOP_IDX_TYPE > > &BuildTriangles, kDOPArray< FTriangleSOA > &SOATriangles, kDOPArray< NodeType > &Nodes)
 Determines if the node is a leaf or not. 更多...
 
FORCEINLINE TkDOPNode ()
 Inits the data to no child nodes and an inverted volume
 

Public 属性

FFourBox BoundingVolumes
 Set of bounding volumes for child nodes.
 

详细描述

template<typename COLL_DATA_PROVIDER, typename KDOP_IDX_TYPE>
struct TkDOPNode< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >

A node in the kDOP tree.

The node contains the kDOP volume that encompasses it's children and/or triangles

成员函数说明

◆ LineCheck()

template<typename COLL_DATA_PROVIDER , typename KDOP_IDX_TYPE >
bool TkDOPNode< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >::LineCheck ( TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > &  Check,
TTraversalHistory< KDOP_IDX_TYPE >  History 
) const
inline

Determines the line in the FkDOPLineCollisionCheck intersects this node.

It also will check the child nodes if it is not a leaf, otherwise it will check against the triangle data.

参数
Check– The aggregated line check data

◆ LineCheckBounds()

template<typename COLL_DATA_PROVIDER , typename KDOP_IDX_TYPE >
FORCEINLINE void TkDOPNode< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >::LineCheckBounds ( TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > &  Check,
FVector4 &  HitTime,
int32  NodeHit[4] 
) const
inline

The slab testing algorithm is based on the following papers.

We chose to use the faster final hit determination, which means we'll get some false positives.

"A Cross-Platform Framework for Interactive Ray Tracing" Markus Geimer, Stefan Mueller http://www.uni-koblenz.de/~cg/publikationen/cp_raytrace.pdf

"Efficiency Issues for Ray Tracing" Brian Smits http://www.cs.utah.edu/~bes/papers/fastRT/paper-node10.html

We don't need to handle +/- INF, but we have permission to use Thierry Berger-Perrin trick available below.

http://www.flipcode.com/archives/SSE_RayBox_Intersection_Test.shtml

参数
CheckInformation about the ray to trace
HitTime[out] Time of hit

◆ LineCheckPreCalculated()

template<typename COLL_DATA_PROVIDER , typename KDOP_IDX_TYPE >
bool TkDOPNode< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >::LineCheckPreCalculated ( TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > &  Check,
const FVector4 &  NodeHitTime,
TTraversalHistory< KDOP_IDX_TYPE >  History,
int32 *  NodeHit 
) const
inline

Determines the line in the FkDOPLineCollisionCheck intersects this node.

It also will check the child nodes if it is not a leaf, otherwise it will check against the triangle data.

参数
Check– The aggregated line check data

◆ LineCheckTriangles()

template<typename COLL_DATA_PROVIDER , typename KDOP_IDX_TYPE >
bool TkDOPNode< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >::LineCheckTriangles ( TkDOPLineCollisionCheck< COLL_DATA_PROVIDER, KDOP_IDX_TYPE > &  Check,
const TTraversalHistory< KDOP_IDX_TYPE > &  History 
) const
inline

Works through the list of triangles in this node checking each one for a collision.

参数
Check– The aggregated line check data

◆ SplitTriangleList()

template<typename COLL_DATA_PROVIDER , typename KDOP_IDX_TYPE >
FBox TkDOPNode< COLL_DATA_PROVIDER, KDOP_IDX_TYPE >::SplitTriangleList ( int32  Start,
int32  NumTris,
TArray< FkDOPBuildCollisionTriangle< KDOP_IDX_TYPE > > &  BuildTriangles,
kDOPArray< FTriangleSOA > &  SOATriangles,
kDOPArray< NodeType > &  Nodes 
)
inline

Determines if the node is a leaf or not.

If it is not a leaf, it subdivides the list of triangles again adding two child nodes and splitting them on the mean (splatter method). Otherwise it sets up the triangle information.

参数
Start– The triangle index to start processing with
NumTris– The number of triangles to process
BuildTriangles– The list of triangles to use for the build process
Nodes– The list of nodes in this tree
返回
bounding box for this node

该结构体的文档由以下文件生成: