Murl::Resource::IMesh::Raw::BoundingLeaf Struct Reference

A bounding volume hierarchy leaf. More...

#include "murl_resource_i_mesh.h"

Public Attributes

Float mFaceNormalX
 The X component of the leaf triangle's face normal.
 
Float mFaceNormalY
 The Y component of the leaf triangle's face normal.
 
Float mFaceNormalZ
 The Z component of the leaf triangle's face normal.
 
UInt32 mTriangleIndex
 The leaf's triangle index.
 
UInt32 mSurfaceIndex
 The index into the array of collision surfaces (see Iff::CollisionSurfaceChunk).
 
SInt32 mVertexIndex0
 The zero-based index of the first BoundingVertex of the triangle.
 
SInt32 mVertexIndex1
 The zero-based index of the second BoundingVertex of the triangle.
 
SInt32 mVertexIndex2
 The zero-based index of the third BoundingVertex of the triangle.
 
SInt32 mAdjacentTriangleIndex0
 The index of the triangle adjacent to the first edge (0-1).
 
SInt32 mAdjacentTriangleIndex1
 The index of the triangle adjacent to the second edge (1-2).
 
SInt32 mAdjacentTriangleIndex2
 The index of the triangle adjacent to the third edge (2-0).
 
Float mUConstant1
 Used to calculate barycentric coordinates u, v, w.
 
Float mUConstant2
 Used to calculate barycentric coordinates u, v, w.
 
Float mVConstant1
 Used to calculate barycentric coordinates u, v, w.
 
Float mVConstant2
 Used to calculate barycentric coordinates u, v, w.
 
UInt32 mDominantAxis
 Used to calculate barycentric coordinates u, v, w.
 
Float mBoundingSphereCenterX
 The X coordinate of the node's bounding sphere.
 
Float mBoundingSphereCenterY
 The Y coordinate of the node's bounding sphere.
 
Float mBoundingSphereCenterZ
 The Z coordinate of the node's bounding sphere.
 
Float mBoundingSphereCenterW
 The W coordinate of the node's bounding sphere.
 
Float mBoundingSphereRadius
 The radius of the node's bounding sphere.
 

Detailed Description

A bounding volume hierarchy leaf.


The documentation for this struct was generated from the following file:
  • murl_resource_i_mesh.h


Copyright © 2011-2018 Spraylight GmbH.