mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-10 06:31:41 +00:00
Adding base_winding regression test to test changes to BaseWindingForPlane().
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@369 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
parent
b3e48a7dae
commit
30029bd5a8
4 changed files with 1493 additions and 0 deletions
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,24 @@
|
|||
Index: tools/quake3/q3map2/brush.c
|
||||
===================================================================
|
||||
--- tools/quake3/q3map2/brush.c (revision 368)
|
||||
+++ 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,10 @@
|
||||
|
||||
/* make huge winding */
|
||||
w = BaseWindingForPlane( plane->normal, plane->dist );
|
||||
+ printf(">>> BaseWindingForPlane() for brush %i, side %i is as follows:\n", brushord, i);
|
||||
+ for (j = 0; j < w->numpoints; j++) {
|
||||
+ printf(">>> (%.10f %.10f %.10f)\n", w->p[j][0], w->p[j][1], w->p[j][2]);
|
||||
+ }
|
||||
|
||||
/* walk the list of brush sides */
|
||||
for( j = 0; j < brush->numsides && w != NULL; j++ )
|
1461
regression_tests/q3map2/base_winding/maps/base_winding.map
Normal file
1461
regression_tests/q3map2/base_winding/maps/base_winding.map
Normal file
File diff suppressed because it is too large
Load diff
Binary file not shown.
Loading…
Reference in a new issue