34#define STANDARD_NUMBER_OF_BRUSHSIDES 6
35typedef struct bspbrush_s {
#define STANDARD_NUMBER_OF_BRUSHSIDES
bspbrush_t * CopyBrush(const bspbrush_t *brush)
Duplicates the brush, the sides, and the windings.
bspbrush_t * BrushFromBounds(const vec3_t mins, const vec3_t maxs)
Creates a new axial brush.
void FreeBrushList(bspbrush_t *brushes)
void FreeBrush(bspbrush_t *brushes)
bspbrush_t * AllocBrush(int numsides)
side_t * SelectSplitSide(bspbrush_t *brushes, bspbrush_t *volume)
Using a heuristic, choses one of the sides out of the brushlist to partition the brushes with.
void SplitBrush(const bspbrush_t *brush, uint16_t planenum, bspbrush_t **front, bspbrush_t **back)
Generates two new brushes, leaving the original unchanged.
uint32_t BrushListCalcContents(bspbrush_t *brushlist)
Collects the contentsflags of the brushes in the given list.
int CountBrushList(bspbrush_t *brushes)
Returns the amount of brushes in the given brushlist.
void BrushlistCalcStats(bspbrush_t *brushlist, AABB &blBox)
Counts the faces and calculate the aabb.
void SplitBrushList(bspbrush_t *brushes, uint16_t planenum, bspbrush_t **front, bspbrush_t **back)
struct mapbrush_s * original
side_t sides[STANDARD_NUMBER_OF_BRUSHSIDES]