I was able to use the nifty radius feature in the polygon() command:
self.toolprofile = polygon([[0,0], [diameter/2, 0, radius], [diameter/2, radius], [diameter/2, flute], [0, flute]])
to make a bowl outline/3D toolshape:
but the next shape I need to model is a cove/roundover tool such as:
and my initial attempt to use a negative value for radius did not work.
Looking at this, I can see two options:
- round off the corners and calculate one or more points on the inner curve and use a spline
- draw an angled outline using polygon(), then subtract an appropriately placed 2D circle
and leaning toward the latter --- does that seem reasonable?
Alternately, could there be a way in the spline command to indicate sharp corners and the direction one enters/exits them? (see the METAFONT/POST curve options for one example)
William