Functions | |
struct surface_s * | BuildSurfaces (void) |
Build the surface lists for the brushset. More... | |
struct surface_s * | CSGFaces (struct brushset_s *bs) |
Convert a brush-set to a list of clipped faces. More... | |
face_t * | NewFaceFromFace (const face_t *in) |
struct visfacet_s * | NewFaceFromFace (const struct visfacet_s *in) |
Create a duplicate face. More... | |
void | SplitFace (struct visfacet_s *in, struct plane_s *split, struct visfacet_s **front, struct visfacet_s **back) |
Split a face by a plane. More... | |
Variables | |
int | brushfaces |
int | csgfaces |
int | csgmergefaces |
face_t * | inside |
face_t * | outside |
struct visfacet_s * | validfaces [MAX_MAP_PLANES] |
face_t * | validfaces [MAX_MAP_PLANES] |
surface_t * BuildSurfaces | ( | void | ) |
Build the surface lists for the brushset.
Each plane still with faces after clipping will have one surface, and each surface will list the faces on that plane.
surface_t * CSGFaces | ( | struct brushset_s * | bs | ) |
Convert a brush-set to a list of clipped faces.
The brushes of the brush set will be clipped against each other.
bs | The brush-set to convert. |
struct visfacet_s* NewFaceFromFace | ( | const struct visfacet_s * | in | ) |
Create a duplicate face.
Duplicates the non point information of a face.
in | The face to duplicate. |
void SplitFace | ( | struct visfacet_s * | in, |
struct plane_s * | split, | ||
struct visfacet_s ** | front, | ||
struct visfacet_s ** | back | ||
) |
Split a face by a plane.
in | The face to split. |
split | The plane by which to split the face. |
front | Set to the new face repesenting the part of the input face that is in front of the plane, or NULL if there is no front portion. |
back | Set to the new face repesenting the part of the input face that is behind the plane, or NULL if there is no back portion. |
int brushfaces |
int csgfaces |
int csgmergefaces |
face_t* inside |
face_t * outside |
struct visfacet_s* validfaces[MAX_MAP_PLANES] |
face_t* validfaces[MAX_MAP_PLANES] |