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

Function reset

Demos/CosseratRodsDemo/main.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86void reset()
87{
88 Utilities::Timing::printAverageTimes();
89 Utilities::Timing::reset();
90
91 Simulation::getCurrent()->reset();
92 base->getSelectedParticles().clear();
93
94 Simulation::getCurrent()->getModel()->cleanup();
95 buildModel();
96}
97
98
99void timeStep ()

Callers

nothing calls this directly

Calls 5

getModelMethod · 0.80
buildModelFunction · 0.70
resetMethod · 0.45
clearMethod · 0.45
cleanupMethod · 0.45

Tested by

no test coverage detected