Free up any temp points (created by the clipper) in the given pointlist Parameters: pointlist - pointer to list of pointers to points, returned by g3_ClipPolygon() nv - the number of points in pointlist
| 69 | // Parameters: pointlist - pointer to list of pointers to points, returned by g3_ClipPolygon() |
| 70 | // nv - the number of points in pointlist |
| 71 | void g3_FreeTempPoints(g3Point **pointlist, int nv) { |
| 72 | // Go through list |
| 73 | int i; |
| 74 | for (i = 0; i < nv; i++) { |
| 75 | if (pointlist[i]->p3_flags & PF_TEMP_POINT) { |
| 76 | FreeTempPoint(pointlist[i]); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | // Make sure all temp points are freed |
| 81 | CheckTempPoints(); |
| 82 | } |
| 83 | |
| 84 | // Clips an edge against the far plane |
| 85 | g3Point *ClipFarEdge(g3Point *on_pnt, g3Point *off_pnt) { |
no test coverage detected