MCPcopy Create free account
hub / github.com/JACoders/OpenJK / WindingBounds

Function WindingBounds

code/qcommon/cm_polylib.cpp:75–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void WindingBounds (winding_t *w, vec3_t mins, vec3_t maxs)
76{
77 vec_t v;
78 int i,j;
79
80 mins[0] = mins[1] = mins[2] = WORLD_SIZE; // 99999; // WORLD_SIZE instead of MAX_WORLD_COORD so that...
81 maxs[0] = maxs[1] = maxs[2] = -WORLD_SIZE; //-99999; // ... it's guaranteed to be outide of legal
82
83 for (i=0 ; i<w->numpoints ; i++)
84 {
85 for (j=0 ; j<3 ; j++)
86 {
87 v = w->p[i][j];
88 if (v < mins[j])
89 mins[j] = v;
90 if (v > maxs[j])
91 maxs[j] = v;
92 }
93 }
94}
95
96/*
97=================

Callers 2

CM_ValidateFacetFunction · 0.70
CM_AddFacetBevelsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected