I have some relatively complex shapes drawn with a sequence
of wires and arcs, and closed using the autorouter (if needed):
"wire '%s' (p %f %f) (p %f %f)\n;", signame, id, a1, od, a1);
"wire '%s' (p %f %f) (p %f %f)\n;", signame, id, a2, od, a2);
"arc '%s' cw (p %f %f) (p %f %f) (p %f %f);\n", signame,
id, a1, id, a2, id, a2);
"arc '%s' ccw (p %f %f) (p %f %f) (p %f %f);\n", signame,
od, a1, od, a2, od, a2);
(These draw a radial wedge with approx half-circle inside and
outside segments, sorta like you'd want for a "pretty" version
of a touch-sensitive wheel. But this is actually for a radial
dirod HV electrostatic generator, so smooth curves are important.
See attached image, if it stays attached.)
I'd like to turn these into polygons. The curved wire choices
don't seem to have a variant that works like "arc", so I'm
having trouble making a direct conversion of the code. (am I
missing something there?)
Does anyone have a ULP that will turn a closed path of wires
(including arcs) into a polygon? Even if that means treating
the arcs as a series of straight wire segments? Something
that works on a particular signal name and stops when it hits
an airwire would be ideal, I think.
Is there some other way to do this?
Thanks
Bill W

