/*
 *  ctbuild.h
 */

#if (!defined(_CTBUILD_H))
#define _CTBUILD_H

/******************************************************************************
 *  Types
 */
typedef struct RpCollBSPTriangle RpCollBSPTriangle;
struct RpCollBSPTriangle
{
    RwUInt16            vertIndex[3];   /* Vertex indices */
    RwInt16             index;          /* Index (unused) */
};

/******************************************************************************
 *  Function prototypes
 */ 
extern RpCollBSPTree *
_rpCollBSPTreeBuild(
    RwInt32             numVertices,
    RwV3d               *vertices,
    RwInt32             numTriangles,
    RpCollBSPTriangle   *triangles,
    RwUInt16            *triangleSortMap
    );

#endif /* (!defined(_CTBUILD_H)) */
