Thanks, nobnob,
That looks quite handy, but I'm not sure how it helps with my
problem...
Since it uses the ".radius" method, I assume it will only work with
ArcCurves specifically, and not Curves in general.
I must admit that I haven't tried, but since the docs say that
ArcCurve inherits from Curve and not vice versa, I assumed that
the .radius, .center, etc. methods only worked on the former. Am I
wrong?
I've decided that I'm going to make my exporter only support ArcCurves
and I'll make a separate plugin that can automatically convert Curves
to ArcCurves if they can be, since this seems like a useful function
on its own. Also, there may be a time when, for whatever reason, a CNC
machinist might want a circular curve to be exported as separate
segments, in which case he/she can just "'Splode'n'Weld(TM)" ;)
So far I have code that (somewhat reliably) finds the center of a
"true" Curve and can also (usually) detect when it's just a group of
edges. Next I have to check if the vertices all share the same radius,
since G02/03 codes only support circular arcs (to the best of my
knowledge).
Thanks again to everyone taking an interest in this problem :D
Keep the input coming ;)
-Amos