AR_Engine_SDK
Functions | Variables
XCustomGeometry.lua File Reference
类 XCusPlane 继承关系图:
Inheritance graph
类 XCusSPlane 继承关系图:
Inheritance graph

Functions

function XCusOBB new () end
 
function XCusOBB new (CusObb) end
 
function XCusOBB IsPointInOBB (vPoint) end
 
function XCusOBB CompleteExtAxis () end
 
function XCusOBB Clear () end
 
function XCusOBB BuildOBB (CusObb1, CusObb2) end
 
function XCusOBB BuildOBB (pVertexPosition, nVertCount) end
 
function XCusOBB BuildOBB (formAABB) end
 
function XCusOBB GetVertices (pVertexPosition, pIndices, bWire) end
 
function XCusOBB GetVertices (bWire) end
 
function XCusAABB new (aabb) end
 
function XCusAABB new (vMins, vMaxs) end
 
function XCusAABB AddVertex (v) end
 
function XCusAABB Build (obb) end
 
function XCusAABB Merge (subAABB) end
 
function XCusAABB CompleteMinsMaxs () end
 
function XCusAABB CompleteCenterExts () end
 
function XCusAABB IsPointIn (v) end
 
function XCusAABB IsAABBIn (aabb) end
 
function XCusAABB IsIntersect (aabb) end
 
function XCusAABB Build (aVertPos, iNumVert) end
 
function XCusAABB GetVertices (aVertPos, aIndices, bWire) end
 
function XCusPlane new (p) end
 
function XCusPlane new (n, d) end
 
function XCusPlane CreatePlane (v1, v2, v3) end
 
function XCusSPlane MakeType () end
 
function XCusSPlane MakeSignBits () end
 
function XCusSPlane MakeTypeAndSignBits () end
 
function XCusCapsule new (src) end
 
function XCusCapsule IsPointIn (vPos) end
 

Variables

 XCusOBB = {}
 

Function Documentation

◆ AddVertex()

function XCusAABB AddVertex ( )

添加顶点信息

Parameters
vXVECTOR3 添加的顶点
Returns
void

◆ Build() [1/2]

function XCusAABB Build ( obb  )

根据给定的OBB信息,构建一个AABB包围盒

Parameters
obbXCusOBB 给定的OBB信息
Returns
void

◆ Build() [2/2]

function XCusAABB Build ( aVertPos  ,
iNumVert   
)

根据给定的顶点信息,构建一个AABB

Parameters
aVertPosXVECTOR3 顶点数组buffer
iNumVertnumber 顶点数组中顶点的数目
Returns
void

◆ BuildOBB() [1/3]

function XCusOBB BuildOBB ( CusObb1  ,
CusObb2   
)

根据2个给定的OBB,构建一个包含这2个OBB的新的OBB

Parameters
CusObb1XCusOBB 第一个OBB信息
CusObb2XCusOBB 第二个OBB信息
Returns
void

◆ BuildOBB() [2/3]

function XCusOBB BuildOBB ( pVertexPosition  ,
nVertCount   
)

根据给定的顶点信息,构建一个新的OBB

Parameters
pVertexPositionXVECTOR3 顶点数组buffer
nVertCountnumber 顶点数组中顶点的数目
Returns
void

◆ BuildOBB() [3/3]

function XCusOBB BuildOBB ( formAABB  )

根据给定的formAABB,构建一个新的OBB

Parameters
formAABBXCusAABB 给定的OBB信息
Returns
void

◆ Clear()

function XEMagicCore__XEWarpPointInfo Clear ( )

清空OBB数据

Returns
void

XEMagicCore_XEObjectEntity_Clear00

Returns
void

XEMagicCore_XEBodyEntity_Clear00

Returns
void

XEMagicCore_XEWarpPointInfo_Clear00

Returns
void

◆ CompleteCenterExts()

function XCusAABB CompleteCenterExts ( )

由“最大”和“最小”点信息计算AABB包围盒中心点和到各个面距离信息

Returns
void

◆ CompleteExtAxis()

function XCusOBB CompleteExtAxis ( )

计算与3个坐标轴的交点坐标(以原点为中心)

Returns
void

◆ CompleteMinsMaxs()

function XCusAABB CompleteMinsMaxs ( )

由Center和Extents计算AABB包围盒“最大”和“最小”点信息

Returns
void

◆ CreatePlane()

function XCusPlane CreatePlane ( v1  ,
v2  ,
v3   
)

根据三个点创建一个面

Parameters
v1XVECTOR3 给定坐标点1
v2XVECTOR3 给定坐标点2
v3XVECTOR3 给定坐标点3
Returns
boolean 是否创建成功

◆ GetVertices() [1/3]

function XCusOBB GetVertices ( pVertexPosition  ,
pIndices  ,
bWire   
)

XCusOBB_GetVertices00

Parameters
pVertexPositionXVECTOR3
pIndicesnumber
bWireboolean
Returns
void

◆ GetVertices() [2/3]

function XCusAABB GetVertices ( bWire  )

XCusOBB_GetVertices01

Parameters
bWireboolean
Returns
XVECTOR3
number
void

XCusAABB_GetVertices01

Parameters
bWireboolean
Returns
XVECTOR3
number
void

◆ GetVertices() [3/3]

function XCusAABB GetVertices ( aVertPos  ,
aIndices  ,
bWire   
)

XCusAABB_GetVertices00

Parameters
aVertPosXVECTOR3
aIndicesnumber
bWireboolean
Returns
void

◆ IsAABBIn()

function XCusAABB IsAABBIn ( aabb  )

判断指定AABB是否在该AABB内

Parameters
aabbXCusAABB 要判断的指定aabb
Returns
boolean 在AABB内,返回true,不在返回false.

◆ IsIntersect()

function XCusAABB IsIntersect ( aabb  )

判断指定AABB和当前AABB是否相交

Parameters
aabbXCusAABB 指定aabb
Returns
boolean 如果相交,返回true,不相交,返回false.

◆ IsPointIn() [1/2]

function XCusAABB IsPointIn ( )

判断指定点是否在该AABB内

Parameters
vXVECTOR3 要判断的指定点坐标
Returns
boolean 在AABB内,返回true,不在返回false.

◆ IsPointIn() [2/2]

function XCusCylinder IsPointIn ( vPos  )

判断指定点是否在该AABB内

Parameters
vPosXVECTOR3 要判断的指定点坐标
Returns
boolean 在AABB内,返回true,不在返回false.

◆ IsPointInOBB()

function XCusOBB IsPointInOBB ( vPoint  )

判断指定点是否在OBB内

Parameters
vPointXVECTOR3 要判断的指定点坐标
Returns
boolean 在OBB内,返回true,不在返回false.

◆ MakeSignBits()

function XCusSPlane MakeSignBits ( )

[引擎内部模块间调用接口]

Returns
void

◆ MakeType()

function XCusSPlane MakeType ( )

[引擎内部模块间调用接口]

Returns
void

◆ MakeTypeAndSignBits()

function XCusSPlane MakeTypeAndSignBits ( )

[引擎内部模块间调用接口]

Returns
void

◆ Merge()

function XCusAABB Merge ( subAABB  )

合并一个subAABB到当前AABB

Parameters
subAABBXCusAABB 要合并的AABB信息
Returns
void

◆ new() [1/7]

function XCusOBB new ( )

XCusOBB_new00

Returns
XCusOBB

XCusAABB_new00

Returns
XCusAABB

XCusPlane_new00

Returns
XCusPlane

XCusSPlane_new00

Returns
XCusSPlane

XCusCapsule_new00

Returns
XCusCapsule

XCusCylinder_new00

Returns
XCusCylinder

◆ new() [2/7]

function XCusOBB new ( CusObb  )

XCusOBB_new01

Parameters
CusObbXCusOBB
Returns
XCusOBB

◆ new() [3/7]

function XCusAABB new ( aabb  )

XCusAABB_new01

Parameters
aabbXCusAABB
Returns
XCusAABB

◆ new() [4/7]

function XCusAABB new ( vMins  ,
vMaxs   
)

XCusAABB_new02

Parameters
vMinsXVECTOR3
vMaxsXVECTOR3
Returns
XCusAABB

◆ new() [5/7]

function XCusSPlane new ( )

XCusPlane_new01

Parameters
pXCusPlane
Returns
XCusPlane

XCusSPlane_new01

Parameters
pXCusSPlane
Returns
XCusSPlane

◆ new() [6/7]

function XCusSPlane new ( ,
 
)

XCusPlane_new02

Parameters
nXVECTOR3
dnumber
Returns
XCusPlane

XCusSPlane_new02

Parameters
nXVECTOR3
dnumber
Returns
XCusSPlane

◆ new() [7/7]

function XCusCylinder new ( src  )

XCusCapsule_new01

Parameters
srcXCusCapsule
Returns
XCusCapsule

XCusCylinder_new01

Parameters
srcXCusCylinder
Returns
XCusCylinder

Variable Documentation

◆ XCusOBB

XCusOBB = {}