1 Index: tools/quake3/q3map2/brush.c
2 ===================================================================
3 --- tools/quake3/q3map2/brush.c (revision 371)
4 +++ tools/quake3/q3map2/brush.c (working copy)
10 + static int brushord = -1;
13 + Sys_Printf("In CreateBrushWindings() for brush %i\n", brushord);
16 /* walk the list of brush sides */
17 for( i = 0; i < brush->numsides; i++ )
19 + Sys_Printf(" Handling side %i on the brush\n", i);
21 /* get side and plane */
22 side = &brush->sides[ i ];
23 plane = &mapplanes[ side->planenum ];
25 /* make huge winding */
26 w = BaseWindingForPlane( plane->normal, plane->dist );
28 + Sys_Printf(" Before clipping we have:\n");
30 + for (z = 0; z < w->numpoints; z++) {
31 + Sys_Printf(" (%.8f %.8f %.8f)\n", w->p[z][0], w->p[z][1], w->p[z][2]);
34 /* walk the list of brush sides */
35 for( j = 0; j < brush->numsides && w != NULL; j++ )
38 plane = &mapplanes[ brush->sides[ j ].planenum ^ 1 ];
39 ChopWindingInPlace( &w, plane->normal, plane->dist, 0 ); // CLIP_EPSILON );
41 + Sys_Printf(" After clipping w/ side %i we have:\n", j);
42 + for (z = 0; z < w->numpoints; z++) {
43 + Sys_Printf(" (%.8f %.8f %.8f)\n", w->p[z][0], w->p[z][1], w->p[z][2]);
46 /* ydnar: fix broken windings that would generate trifans */
48 Index: tools/quake3/q3map2/map.c
49 ===================================================================
50 --- tools/quake3/q3map2/map.c (revision 371)
51 +++ tools/quake3/q3map2/map.c (working copy)
53 char shader[ MAX_QPATH ];
56 + static int brushord = -1;
59 + Sys_Printf("In ParseRawBrush() for brush %i\n", brushord);
62 buildBrush->numsides = 0;
63 buildBrush->detail = qfalse;
65 if( g_bBrushPrimit == BPRIMIT_NEWBRUSHES )
74 if( !GetToken( qtrue ) )
76 if( !strcmp( token, "}" ) )
80 /* find the plane number */
81 + Sys_Printf(" Side %i:\n", sideord);
82 + Sys_Printf(" (%f %f %f)\n", planePoints[0][0], planePoints[0][1], planePoints[0][2]);
83 + Sys_Printf(" (%f %f %f)\n", planePoints[1][0], planePoints[1][1], planePoints[1][2]);
84 + Sys_Printf(" (%f %f %f)\n", planePoints[2][0], planePoints[2][1], planePoints[2][2]);
85 planenum = MapPlaneFromPoints( planePoints );
86 side->planenum = planenum;