]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - regression_tests/q3map2/base_winding/base_winding_logging.patch
6e2a31a7f7ef5cc48d3fa71906014722bce37130
[xonotic/netradiant.git] / regression_tests / q3map2 / base_winding / base_winding_logging.patch
1 Index: tools/quake3/q3map2/brush.c
2 ===================================================================
3 --- tools/quake3/q3map2/brush.c (revision 368)
4 +++ tools/quake3/q3map2/brush.c (working copy)
5 @@ -357,6 +357,8 @@
6         side_t          *side;
7         plane_t         *plane;
8         
9 +       static  int     brushord = -1;
10 +       brushord++;
11         
12         /* walk the list of brush sides */
13         for( i = 0; i < brush->numsides; i++ )
14 @@ -367,6 +369,10 @@
15                 
16                 /* make huge winding */
17                 w = BaseWindingForPlane( plane->normal, plane->dist );
18 +               printf(">>> BaseWindingForPlane() for brush %i, side %i is as follows:\n", brushord, i);
19 +               for (j = 0; j < w->numpoints; j++) {
20 +                       printf(">>> (%.10f %.10f %.10f)\n", w->p[j][0], w->p[j][1], w->p[j][2]);
21 +               }
22                 
23                 /* walk the list of brush sides */
24                 for( j = 0; j < brush->numsides && w != NULL; j++ )