Corner Cutting

This sketch simulates a 2d version of the Boo-Sabin Subdivision.
Press 'Run Iteration' to view demo. Draw your own shape with your mouse.


Short Explanation

This operation can be used to smoothen out objects.

This is done by applying following rules each iteration:
On every line draw a new point at 1/4 and 3/4 of its length.
Remove the old points and connect the new ones.

Repeating this several times gives a smooth curve.

more on Boo-Sabin Subdivision: wikipedia