ericw-tools/qbsp
Tyrann 5b9cb50f11 [PATCH] qbsp: Fix AddHullEdge logic
Fix the logic that decided which edges were to be added to smooth the clipping
hulls. The original logic is completely backwards and throws away all the hull
edge clipping planes you want, while potentially keeping the worst corner
cases.

This patch corrects that logic - for that reason, regressions are expected as
we will now be adding more planes to the maps and clipping more things at
wierd angles. Compile times will probably increase and clipping errors will be
more common, at least until some more tuning of the various epsilons is done.

While we're hacking the function, hoist some calculations from the inner loops
up to the outermost loop. Not that this function is that performance critical.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-08-20 21:21:17 +09:30
..
brush.c [PATCH] qbsp: Fix AddHullEdge logic 2007-08-20 21:21:17 +09:30
bspfile.c [PATCH] qbsp: Fix cast of data pointer for LoadFile callers 2006-09-16 16:20:56 +09:30
cmdlib.c [PATCH] qbsp: Add -wadpath option 2007-08-19 05:32:46 +09:30
csg4.c [PATCH] qbsp: Avoid some unnecessary face splits 2006-10-02 20:14:01 +09:30
file.c [PATCH 9/9] qbsp: Compile as C code 2006-09-10 17:38:34 +09:30
file.h [PATCH 1/9] qbsp: Replace File class with basic stdio functions 2006-09-10 17:38:30 +09:30
globals.c [PATCH] qbsp: Fix reporting of peak winding memory use 2006-10-02 17:56:34 +09:30
map.c [PATCH] qbsp: Replace hard coded epsilons with defines 2006-10-09 22:52:02 +09:30
mathlib.c [PATCH] qbsp: Constify VectorXX functions 2006-09-16 19:37:48 +09:30
merge.c [PATCH] qbsp: Collect all epsilons together in qbsp.h 2006-10-09 22:52:02 +09:30
outside.c [PATCH] qbsp: Use real int/float/double limits 2007-08-19 20:17:23 +09:30
parser.c [PATCH] qbsp: Enable map file parser to return comment tokens 2006-09-16 22:24:09 +09:30
parser.h [PATCH] qbsp: Enable map file parser to return comment tokens 2006-09-16 22:24:09 +09:30
portals.c [PATCH] qbsp: Replace hard coded epsilons with defines 2006-10-09 22:52:02 +09:30
qbsp.c [PATCH] qbsp: Use hash in FindPlane 2007-08-20 21:21:17 +09:30
qbsp.h [PATCH] qbsp: Use hash in FindPlane 2007-08-20 21:21:17 +09:30
solidbsp.c [PATCH] qbsp: Use real int/float/double limits 2007-08-19 20:17:23 +09:30
surfaces.c [PATCH] qbsp: Use real int/float/double limits 2007-08-19 20:17:23 +09:30
tjunc.c [PATCH] qbsp: Use real int/float/double limits 2007-08-19 20:17:23 +09:30
util.c [PATCH] qbsp: flush stdout when printing messages 2007-08-19 20:17:23 +09:30
wad.c [PATCH] qbsp: Add -wadpath option 2007-08-19 05:32:46 +09:30
wad.h [PATCH] qbsp: Complete removal of wadlist_t 2006-10-02 14:26:27 +09:30
warnerr.h [PATCH] qbsp: Add support for QuArK map files 2006-09-17 21:36:01 +09:30
winding.c [PATCH] qbsp: Refactor some winding clip/split code 2006-10-02 19:46:43 +09:30
writebsp.c [PATCH] qbsp: Use double-precision floating point 2006-09-16 16:36:16 +09:30