Loop

Description

Loops the underlying program commands. Depending on the selection, the underlying program commands are either looped infinitely, a certain number of times or as long as the given condition is true. When looping a certain number of times, a dedicated loop variable (called loop_1 in the screen shot above) is created, which can be used in expressions within the loop. The loop variable counts from 0 to N − 1.

 

Looping an Expression

When looping using an expression as end condition, PolyScope provides an option for continuously evaluating that expression, so that the “loop” can be interrupted anytime during its execution, rather than just after each iteration.