How to count the teeth? I suggest a little graphics hack that will superimpose an SVG gear over the chain ring photograph and then solve for tooth count. The g9.js reverse animator is made for this. mastodon ![]()

Uploaded image
With g9, making an interactive visualization is as easy as making a visualization that isn't. Just write a function which draws shapes based on data, and g9 will automatically figure out how to manipulate that data when you drag the shapes around. site
gallery ![]()
We'll take inspiration from two g9.js examples: "Three points define a circle" for finding center and radius and "Cube" for 3D projection.
pages/chain-ring-counter
http://ward.dojo.fed.wiki/assets/pages/chain-ring-counter/count-solver.html HEIGHT 450