When you create an iteration, it can be a geometric iteration (based on independent points), a numeric iteration (based on parameters), or a combination of the two. Here’s an example of using a geometric iteration to create an iterated midpoint triangle.
To define a Sketchpad iteration, create the preimage and then specify how its defining points or parameters should be mapped to produce the first iteration image. Sketchpad handles the iteration from there.
For instance, here are the preimage and the first three images for the midpoint triangle iteration.
PreImage 
First Image 
Second Image 
Third Image 
The first image repeats the preimage construction, but starting from midpoints D, E, and F. The map that defines this iteration is shown on the right. Follow the steps below to construct this iterated midpoint triangle. 
AD BE CF 
1.Construct the preimage triangle exactly as shown above.
2.Select the independent seed points A, B, and C that define the preimage. 3.Choose Transform  Iterate. The Iterate dialog box appears with the left column filled in.



4.Click point D in the sketch to fill in the top box of the right column. This specifies that point D should play the same role in the first image that point A played in the preimage, 

5.Similarly click points E and F in the sketch to complete the iteration map. As you complete each row of the map, Sketchpad displays the first three partial images based on the part of the map you’ve already completed. 6.After you complete the entire map, click the Iterate button to confirm the iteration rule and construct the iteration images. 
Sketchpad produces an iterated image object for each object affected by your mapping. In this example there are six iterated image objects, one for each vertex of your original triangle and one for each side. You can select and manipulate each iterated image object separately. For example, you could hide or clear the three iterated image objects of your original triangle’s vertices, or you could color each of the three iterated image objects of your original triangle’s edges with a different color. 
Sketchpad normally displays iterations to a depth of three, showing the first, second, and third iteration image. Use Iteration Properties to change the depth of the iteration in order to show more or fewer iteration images, or select any of the iterated image objects and press + or – on the keyboard.
You can also use a numeric value (a parameter or a calculation) to control the depth of an iteration. After selecting the seed points and/or values, select one additional parameter or calculation, and then hold Shift and choose Transform  Iterate to Depth. (Notice the change in the command name.) The whole number part of the value you selected last will define the number of iterations. (When you choose Iterate, the minimum depth is one; when you choose Iterate to Depth, the minimum depth is zero.) 
Use Iterate to create fractals such as the Sierpiński Gasket by specifying more than one mapping of your preimage. See Multiple Iteration Maps for more information.
See also: