QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
brush.c File Reference

Macros

#define ANGLEEPSILON   0.00001
 
#define DISTEPSILON   0.01
 
#define MAX_HULL_EDGES   MAX_HULL_POINTS * 2
 
#define MAX_HULL_POINTS   256
 
#define ZERO_EPSILON   0.001
 

Functions

brush_tAllocBrush (void)
 Allocate a new brush. More...
 
brushset_tBrush_LoadEntity (entity_t *ent, int hullnum)
 Load the brushes from the entity. More...
 
int FindPlane (const plane_t *dplane, int *side)
 Add a plane to the global list of planes. More...
 
int NormalizePlane (plane_t *dp)
 Make the plane canonical. More...
 
int PlaneTypeForNormal (const vec3_t normal)
 Determine the primary axis of the normal. More...
 

Variables

face_tbrush_faces
 
vec3_t brush_maxs
 
vec3_t brush_mins
 
mface_t faces [MAX_FACES]
 
vec3_t hull_corners [MAX_HULL_POINTS *8]
 
int hull_edges [MAX_HULL_EDGES][2]
 
vec3_t hull_points [MAX_HULL_POINTS]
 
vec3_t hull_size [3][2]
 
int num_hull_edges
 
int num_hull_points
 
int numbrushfaces
 
int numbrushplanes
 
plane_t planes [MAX_MAP_PLANES]