Apothem

Andy's picture

Gear 2D Prototype

gear2d prototype

Following the circle involute blog, I thought about creating a gear procedure for easy creation of different gears. The method used is quite differnt to the involute idea but the turtle geometry way of thinking and doing the gears. This prototype procedure utilised a simple regular poygon formula (repeat :sides [ fd 1 rt 360/:sides ]) and some built-in commands such as TOWARD and SETHEADING to rotate the turtle and get the directions needed.