MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / initMesh

Method initMesh

Utils/IndexedFaceMesh.cpp:61–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void 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
75void IndexedFaceMesh::release()
76{

Callers

nothing calls this directly

Calls 1

reserveMethod · 0.45

Tested by

no test coverage detected