From 7e4169f00115a04fbd777020a447de379440f67f Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Fri, 24 Jun 2022 00:18:19 -0600 Subject: [PATCH] qbsp: add a placeholder side_t that's just a copy of fae_t --- include/qbsp/brush.hh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/include/qbsp/brush.hh b/include/qbsp/brush.hh index 1fe4d2dc..330f955a 100644 --- a/include/qbsp/brush.hh +++ b/include/qbsp/brush.hh @@ -28,6 +28,33 @@ class mapentity_t; +struct side_t +{ + winding_t w; + std::vector edges; // only filled in MakeFaceEdges + std::optional outputnumber; // only valid for original faces after + // write surfaces + + int planenum; + planeside_t planeside; // which side is the front of the face + int texinfo; + twosided contents; + twosided lmshift; + + qvec3d origin; + vec_t radius; + + // filled by TJunc + std::vector fragments; + + // fixme-brushbsp: move to a brush_side_t struct + bool onnode; // has this face been used as a BSP node plane yet? + bool visible = true; // can any part of this side be seen from non-void parts of the level? + // non-visible means we can discard the brush side + // (avoiding generating a BSP spit, so expanding it outwards) + portal_t *portal; +}; + struct bspbrush_t { /** * The brushes in the mapentity_t::brushes vector are considered originals. Brush fragments created during