Toothed Wheel plugin WIP for Cinema4d, phase 2 done.
More or less finished translating the XPresso Setups into one COFFEE script, including generation of the geometry.
I'm going into phase 3: conversion to C++. Got the Toothed Wheel Object's skeleton set-up, including the object attributes and icon. Now I'm transferring the COFFEE functions for generating the rudimentary gear shape, both for involute and ring gears.
After I get that working, I'll add the user-controlled tooth profiles. Still lots of stuff to study about the API. I want the profile controls to either be in a separate GUI or keep them as splines+nulls, but they should only be there for setup.
I'll just keep whacking at this, see how it'll turn out.