MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / animation

Function animation

cpp/5_Domain_Specific/marchingCubes/marchingCubes.cpp:267–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265#define THRESHOLD 0.30f
266
267void animation()
268{
269 if (animate) {
270 isoValue += dIsoValue;
271
272 if (isoValue < 0.1f) {
273 isoValue = 0.1f;
274 dIsoValue *= -1.0f;
275 }
276 else if (isoValue > 0.9f) {
277 isoValue = 0.9f;
278 dIsoValue *= -1.0f;
279 }
280 }
281}
282
283void timerEvent(int value)
284{

Callers 2

timerEventFunction · 0.85
idleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected