more regression tests from ZeroRadiant
This commit is contained in:
parent
5e21f6e064
commit
bbcc70e072
8
regression_tests/q3map2/base_winding/README.txt
Normal file
8
regression_tests/q3map2/base_winding/README.txt
Normal 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().
|
||||||
|
|
@ -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++ )
|
||||||
1284
regression_tests/q3map2/base_winding/maps/base_winding.map
Normal file
1284
regression_tests/q3map2/base_winding/maps/base_winding.map
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -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
|
slightest math errors are magnified in successive calls to linear algebra
|
||||||
functions.
|
functions.
|
||||||
|
|
||||||
|
The change described above was commmitted to GtkRadiant trunk as revision r363.
|
||||||
|
|
||||||
|
|
||||||
POSSIBLE SIDE EFFECTS:
|
POSSIBLE SIDE EFFECTS:
|
||||||
======================
|
======================
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user