MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / reserve

Method reserve

src/collision/HalfEdgeStructure.cpp:124–130  ·  view source on GitHub ↗

Reserve some memory for vertices, faces and edges

Source from the content-addressed store, hash-verified

122
123// Reserve some memory for vertices, faces and edges
124void HalfEdgeStructure::reserve(uint32 facesCapacity, uint32 verticesCapacity, uint32 edgesCapacity) {
125
126 mFaces.reserve(facesCapacity);
127 mVertices.reserve(verticesCapacity);
128 mEdges.reserve(edgesCapacity);
129
130}
131
132// Return a string representation of the half-edge structure
133std::string HalfEdgeStructure::to_string() const {

Callers 4

initMethod · 0.45
initMethod · 0.45
initMethod · 0.45
reserveMemoryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected