#ifndef	CSG4_H
#define	CSG4_H

/* csg4.c */

/*============================================================================= */

/* build surfaces is also used by GatherNodeFaces */

extern struct visfacet **validfaces;				/*[MAX_MAP_PLANES]; */

/*============================================================================= */

struct surface *BuildSurfaces(__memBase);
struct surface *CSGFaces(__memBase, struct brushset *bs);
struct visfacet *NewFaceFromFace(register struct visfacet *in, register int points);
void SplitFace(struct visfacet *in, struct plane *split, struct visfacet **front, struct visfacet **back);

#endif
