| 69 | } |
| 70 | |
| 71 | void LNLib::VoronoiDiagramGenerator::reset() |
| 72 | { |
| 73 | cleanup(); |
| 74 | cleanupEdges(); |
| 75 | |
| 76 | if (allMemoryList != 0) |
| 77 | delete allMemoryList; |
| 78 | |
| 79 | if (finalVertices != 0) |
| 80 | free(finalVertices); |
| 81 | |
| 82 | if (vertexLinks != 0) |
| 83 | free(vertexLinks); |
| 84 | |
| 85 | if (vertices != 0) |
| 86 | free(vertices); |
| 87 | |
| 88 | if (finalVertexLinks != 0) |
| 89 | free(finalVertexLinks); |
| 90 | |
| 91 | allMemoryList = 0; |
| 92 | finalVertices = 0; |
| 93 | vertexLinks = 0; |
| 94 | vertices = 0; |
| 95 | finalVertexLinks = 0; |
| 96 | triangles.clear(); |
| 97 | } |
| 98 | |
| 99 | std::vector<std::vector<int>> LNLib::VoronoiDiagramGenerator::getTriangles() |
| 100 | { |
nothing calls this directly
no outgoing calls
no test coverage detected