| 59 | } |
| 60 | |
| 61 | void IndexedFaceMesh::initMesh(const unsigned int nPoints, const unsigned int nEdges, const unsigned int nFaces) |
| 62 | { |
| 63 | m_numPoints = nPoints; |
| 64 | m_indices.reserve(nFaces*m_verticesPerFace); |
| 65 | m_edges.reserve(nEdges); |
| 66 | m_facesEdges.reserve(nFaces); |
| 67 | m_uvIndices.reserve(nFaces); |
| 68 | m_uvs.reserve(nPoints); |
| 69 | m_verticesFaces.reserve(nPoints); |
| 70 | m_verticesEdges.reserve(nPoints); |
| 71 | m_normals.reserve(nFaces); |
| 72 | m_vertexNormals.reserve(nPoints); |
| 73 | } |
| 74 | |
| 75 | void IndexedFaceMesh::release() |
| 76 | { |