Of course, you'd want to see what you have created. This is accomplished by the function draw(). The next example creates figure 2.5.
F=Formex([[[0,0,0],[0,1,0]], [[0,1,0],[1,1,0]], [[1,1,0],[1,0,0]], [[1,0,0], [0,0,0]], [[0,0,0],[0,1,0]], [[0,0,0],[0.5,0.5,1]], [[1,0,0],[0.5,0.5,1]], [[1,1,0], [0.5,0.5,1]], [[0,1,0],[0.5,0.5,1]]]) draw(F)
It also possible to draw multiple Formices at the same time.
from simple import * F=Formex([[[0,0,0],[0,1,0]], [[0,1,0],[1,1,0]], [[1,1,0],[1,0,0]], [[1,0,0], [0,0,0]], [[0,0,0],[0,1,0]], [[0,0,0],[0.5,0.5,1]], [[1,0,0],[0.5,0.5,1]], [[1,1,0],[0.5,0.5,1]], [[0,1,0],[0.5,0.5,1]]]).setProp(1) G=Formex(pattern(Pattern['cube'])).setProp(3) draw(F+G)
It might be important to realize that even if you don't draw a particular Formex, that doesn't mean you didn't create it!
Now, when you are creating a large geometry, you might be interested in seeing the different steps in the creation. To remove all previously drawn Formices, you can use clear() what sweepes the screen clean. If you want to see a certain step in the creation longer than the default time, use sleep(t), with t the delay (in seconds) before executing the next command.
F=Formex(pattern('164')) draw(F) G=F.replic(5,1,0) clear() draw(G)