Twilight Princess
Remastered version of the GameCube game
Loading...
Searching...
No Matches
KclLibrary.KCLModel Class Reference

Classes

class  IndexEqualityComparer
 
class  OctreeBounding
 

Public Member Functions

 KCLModel ()
 
 KCLModel (List< Triangle > triangleList, uint baseTriCount, FileVersion version, CollisionImportSettings settings)
 
Triangle GetTriangle (KclPrism prism)
 
KCLHit CheckHit (Vector3 point)
 
uint GetMaxTriangleCount ()
 
float GetMinCubeSize ()
 
int GetMaxOctreeDepth ()
 
Vector3 GetCoordinatePadding ()
 
List< OctreeBounding > GetOctreeBoundings ()
 

Properties

Vector3 MinCoordinate [get, set]
 
Vector3U CoordinateMask [get, set]
 
Vector3U CoordinateShift [get, set]
 
List< Vector3 > Positions [get, set]
 
List< Vector3 > Normals [get, set]
 
KclPrism[] Prisms [get, set]
 
float PrismThickness [get, set]
 
PolygonOctree[] PolygonOctreeRoots [get, private set]
 
float SphereRadius = 1f [get, set]
 
FileVersion Version = FileVersion.Version2 [get, private set]
 
List< KclPrism > HitPrisms = new List<KclPrism>() [get, set]
 
List< PolygonOctree > HitOctrees = new List<PolygonOctree>() [get, set]
 

Private Member Functions

Dictionary< ushort[], int > CreateIndexBuffer (Queue< PolygonOctree[]> queuedNodes)
 
void GetOctreeBounding (List< OctreeBounding > boundings, PolygonOctree octree, Vector3 cubePosition, float cubeSize)
 
int GetPolygonOctreeDepth (PolygonOctree octree, Vector3 cubePosition, float cubeSize, int depth=0)
 
int GetNodeCount (PolygonOctree[] nodes)
 
int IndexOfVertex (Vector3 value, List< Vector3 > valueList, Dictionary< string, int > lookupTable)
 

Static Private Member Functions

static int ContainsVector3 (Vector3 a, List< Vector3 > b)
 

Constructor & Destructor Documentation

◆ KCLModel() [1/2]

KclLibrary.KCLModel.KCLModel ( )

◆ KCLModel() [2/2]

KclLibrary.KCLModel.KCLModel ( List< Triangle > triangleList,
uint baseTriCount,
FileVersion version,
CollisionImportSettings settings )

Member Function Documentation

◆ CheckHit()

KCLHit KclLibrary.KCLModel.CheckHit ( Vector3 point)

◆ ContainsVector3()

static int KclLibrary.KCLModel.ContainsVector3 ( Vector3 a,
List< Vector3 > b )
staticprivate

◆ CreateIndexBuffer()

Dictionary< ushort[], int > KclLibrary.KCLModel.CreateIndexBuffer ( Queue< PolygonOctree[]> queuedNodes)
private

◆ GetCoordinatePadding()

Vector3 KclLibrary.KCLModel.GetCoordinatePadding ( )

◆ GetMaxOctreeDepth()

int KclLibrary.KCLModel.GetMaxOctreeDepth ( )

◆ GetMaxTriangleCount()

uint KclLibrary.KCLModel.GetMaxTriangleCount ( )

◆ GetMinCubeSize()

float KclLibrary.KCLModel.GetMinCubeSize ( )

◆ GetNodeCount()

int KclLibrary.KCLModel.GetNodeCount ( PolygonOctree[] nodes)
private

◆ GetOctreeBounding()

void KclLibrary.KCLModel.GetOctreeBounding ( List< OctreeBounding > boundings,
PolygonOctree octree,
Vector3 cubePosition,
float cubeSize )
private

◆ GetOctreeBoundings()

List< OctreeBounding > KclLibrary.KCLModel.GetOctreeBoundings ( )

◆ GetPolygonOctreeDepth()

int KclLibrary.KCLModel.GetPolygonOctreeDepth ( PolygonOctree octree,
Vector3 cubePosition,
float cubeSize,
int depth = 0 )
private

◆ GetTriangle()

Triangle KclLibrary.KCLModel.GetTriangle ( KclPrism prism)

◆ IndexOfVertex()

int KclLibrary.KCLModel.IndexOfVertex ( Vector3 value,
List< Vector3 > valueList,
Dictionary< string, int > lookupTable )
private

Property Documentation

◆ CoordinateMask

Vector3U KclLibrary.KCLModel.CoordinateMask
getset

◆ CoordinateShift

Vector3U KclLibrary.KCLModel.CoordinateShift
getset

◆ HitOctrees

List<PolygonOctree> KclLibrary.KCLModel.HitOctrees = new List<PolygonOctree>()
getset

◆ HitPrisms

List<KclPrism> KclLibrary.KCLModel.HitPrisms = new List<KclPrism>()
getset

◆ MinCoordinate

Vector3 KclLibrary.KCLModel.MinCoordinate
getset

◆ Normals

List<Vector3> KclLibrary.KCLModel.Normals
getset

◆ PolygonOctreeRoots

PolygonOctree [] KclLibrary.KCLModel.PolygonOctreeRoots
getprivate set

◆ Positions

List<Vector3> KclLibrary.KCLModel.Positions
getset

◆ Prisms

KclPrism [] KclLibrary.KCLModel.Prisms
getset

◆ PrismThickness

float KclLibrary.KCLModel.PrismThickness
getset

◆ SphereRadius

float KclLibrary.KCLModel.SphereRadius = 1f
getset

◆ Version

FileVersion KclLibrary.KCLModel.Version = FileVersion.Version2
getprivate set

The documentation for this class was generated from the following file: