more regression tests from ZeroRadiant

This commit is contained in:
Rudolf Polzer 2010-12-28 11:22:00 +01:00
parent 5e21f6e064
commit bbcc70e072
4 changed files with 1321 additions and 0 deletions

View File

@ -0,0 +1,8 @@
DESCRIPTION OF PROBLEM:
=======================
The provided map, maps/base_winding.map, serves as an example map to test
changes to BaseWindingForPlane(). This map has planes at many different
angles. Use the patch base_winding_logging.patch to log the computed
base windings, in order to compare before and after when making changes to
BaseWindingForPlane().

View File

@ -0,0 +1,27 @@
Index: tools/quake3/q3map2/brush.c
===================================================================
--- tools/quake3/q3map2/brush.c (revision 369)
+++ tools/quake3/q3map2/brush.c (working copy)
@@ -357,6 +357,8 @@
side_t *side;
plane_t *plane;
+ static int brushord = -1;
+ brushord++;
/* walk the list of brush sides */
for( i = 0; i < brush->numsides; i++ )
@@ -367,6 +369,13 @@
/* make huge winding */
w = BaseWindingForPlane( plane->normal, plane->dist );
+ Sys_Printf(">>> BaseWindingForPlane() for brush %i, side %i is as follows:\n", brushord, i);
+ for (j = 0; j < w->numpoints; j++) {
+ Sys_Printf(">>> (%.1f %.1f %.1f) [rounded to nearest integer coordinates]\n",
+ Q_rint(w->p[j][0]),
+ Q_rint(w->p[j][1]),
+ Q_rint(w->p[j][2]));
+ }
/* walk the list of brush sides */
for( j = 0; j < brush->numsides && w != NULL; j++ )

File diff suppressed because it is too large Load Diff

View File

@ -46,6 +46,8 @@ And we get rid of the recpirocal length ilength altogether. Even the
slightest math errors are magnified in successive calls to linear algebra
functions.
The change described above was commmitted to GtkRadiant trunk as revision r363.
POSSIBLE SIDE EFFECTS:
======================