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

Method initMesh

Utils/IndexedTetMesh.cpp:14–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void IndexedTetMesh::initMesh(const unsigned int nPoints, const unsigned int nEdges, const unsigned int nFaces, const unsigned int nTets)
15{
16 m_numPoints = nPoints;
17 m_faceIndices.reserve(nFaces*3);
18 m_tetIndices.reserve(nTets*4);
19 m_edges.reserve(nEdges);
20 m_faces.reserve(nFaces);
21 m_tets.reserve(nTets);
22 m_verticesTets.reserve(nPoints);
23 m_verticesFaces.reserve(nPoints);
24 m_verticesEdges.reserve(nPoints);
25}
26
27void IndexedTetMesh::release()
28{

Callers

nothing calls this directly

Calls 1

reserveMethod · 0.45

Tested by

no test coverage detected