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

Function reset

pyPBD/examples/armadillo.py:136–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134
135# Reset the simulation
136def reset():
137 sim = pbd.Simulation.getCurrent()
138 sim.reset()
139 sim.getModel().cleanup()
140 cd = sim.getTimeStep().getCollisionDetection()
141 cd.cleanup()
142 buildModel()
143
144def main():
145 # Activate logger to output info on the console

Callers 1

mainFunction · 0.70

Calls 7

getModelMethod · 0.80
getCollisionDetectionMethod · 0.80
getTimeStepMethod · 0.80
buildModelFunction · 0.70
getCurrentMethod · 0.45
resetMethod · 0.45
cleanupMethod · 0.45

Tested by

no test coverage detected