From 6d6a78718549ba3fb76d7cb2d1533300d568dd6d Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Sun, 23 Jun 2013 14:20:54 +0930 Subject: [PATCH] qbsp: comment wvert_t and wedge_t structures Took me some time to work out what this was all representing and that t was the parameter to the parametric equations of the edge's line in 3-d space. May as well make it easier for others and my future self. Signed-off-by: Kevin Shanahan --- qbsp/qbsp.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qbsp/qbsp.h b/qbsp/qbsp.h index 672ee350..a0aee281 100644 --- a/qbsp/qbsp.h +++ b/qbsp/qbsp.h @@ -516,15 +516,15 @@ void GrowNodeRegions(node_t *headnode); // tjunc.c typedef struct wvert_s { - vec_t t; - struct wvert_s *prev, *next; + vec_t t; /* t-value for parametric equation of edge */ + struct wvert_s *prev, *next; /* t-ordered list of vertices on same edge */ } wvert_t; typedef struct wedge_s { - struct wedge_s *next; - vec3_t dir; - vec3_t origin; - wvert_t head; + struct wedge_s *next; /* pointer for hash bucket chain */ + vec3_t dir; /* direction vector for the edge */ + vec3_t origin; /* origin (t = 0) in parametric form */ + wvert_t head; /* linked list of verticies on this edge */ } wedge_t; //=============================================================================