Frees up a polygon and all the vertices associated with it
| 241 | |
| 242 | // Frees up a polygon and all the vertices associated with it |
| 243 | void FreePolygon(bsppolygon *poly) { |
| 244 | ASSERT(poly != NULL); |
| 245 | ASSERT(poly->nv > 2); |
| 246 | |
| 247 | if (poly->nv > 0) { |
| 248 | mem_free(poly->verts); |
| 249 | } |
| 250 | |
| 251 | mem_free(poly); |
| 252 | } |
| 253 | |
| 254 | // Calculates the plane equation for a given polygon |
| 255 | void CalculatePolygonPlane(bsppolygon *poly) { |
no outgoing calls
no test coverage detected