I got it to work. Requires some gap and curve value tweaking but really nice.
thanks for your comments, helped. I got rid of the Trig and just went with Geometry.
I have written a C program that generates a Script to draw the pads of a capacitive touch wheel (sort of).
My challenge is using the ARC and CURVE when I draw my pads using the Polygon command. I am trying
to create wavey edges of the pads and I can do that but my problem is I cannot maintain the spacing
between the pads when I use an arc when I draw the adjacent polygon. I have included an image
of what I have achieved and the script that generated it.
I have used some pretty extensive trig and geometry to generate the script but it seams like when I
change the arc height, width etc. I am not getting the behavior that I would expect from my calculations.
I was hoping for some feedback.
1. The explination of arc and curve seem pretty straight forward. Have you ever found them hard to control
in scripts?
2..Is there anyway to avoid using the arc or curve to draw smooth curves?
3. Should I just look at the time I spent doing this as wasted and move on with my life?
Thanks for any comments or ideas you might have
CHANGE WIDTH .2032;
GRID mm;
SET WIRE_BEND 7;
Change layer 51;
CIRCLE (0 0) (30.0000 0);
CIRCLE (0 0) (5.0000 0);
CHANGE WIDTH .1;
WIRE (4.7815 1.4619) (28.6891 8.7712);
WIRE (-1.4619 4.7815) (-8.7712 28.6891);
WIRE (-4.7815 -1.4619) (-28.6891 -8.7711);
WIRE (1.4619 -4.7815) (8.7711 -28.6891);
CHANGE LAYER 1;
CHANGE WIDTH .1;
CHANGE WIDTH 0.0254;
GRID mm;
SET WIRE_BEND 2;
POLYGON (4.3950 2.3841) +67.0433 (-0.4811 4.9768) +120.00 (-4.0355 12.6118) -120.00 (-6.1910 20.8609) +120.00 (-8.7656 28.6908) -86.1801 (28.3809 9.7225) -120.00 (20.8586 6.4786) +120.00 (12.6101 3.7609) -120.00 (4.9211 1.6027) (4.3950 2.3841)
POLYGON (-2.3841 4.3950) +67.0433 (-4.9768 -0.4811) +120.00 (-12.6118 -3.7561) -120.00 (-20.8609 -6.4704) +120.00 (-28.6908 -8.7656) -86.1801 (-9.7224 28.3809) -120.00 (-6.1989 20.8586) +120.00 (-4.0406 12.6101) -120.00 (-1.3229 4.9211) (-2.3841 4.3950)
POLYGON (-4.3950 -2.3841) +67.0433 (0.4811 -4.9768) +120.00 (3.7561 -12.8912) -120.00 (6.4704 -20.5814) +120.00 (8.7656 -28.6908) -86.1801 (-28.3809 -9.7224) -120.00 (-20.5788 -6.1989) +120.00 (-12.8899 -4.0406) -120.00 (-4.6414 -1.3229) (-4.3950 -2.3841)
POLYGON (2.3841 -4.3950) +67.0433 (4.9768 0.4811) +120.00 (12.8912 4.0355) -120.00 (20.5814 6.1910) +120.00 (28.6908 8.7656) -86.1801 (9.7224 -28.3809) -120.00 (6.4786 -20.5788) +120.00 (3.7609 -12.8899) -120.00 (1.6027 -4.6414) (2.3841 -4.3950)