+ public void pad_mm_clear_mask_options(real center_x,
+ real center_y,
+ real width,
+ real height,
+ real clearance,
+ real mask,
+ string name,
+ string num,
+ string options)
+ {
+ real x1 = 0;
+ real y1 = 0;
+ real x2 = 0;
+ real y2 = 0;
+ real thickness = 0;
+
+ if (width > height) {
+ thickness = height;
+ y1 = center_y;
+ x1 = center_x - (width - height) / 2;
+ y2 = center_y;
+ x2 = center_x + (width - height) / 2;
+ } else {
+ thickness = width;
+ x1 = center_x;
+ y1 = center_y - (height - width) / 2;
+ x2 = center_x;
+ y2 = center_y + (height - width) / 2;
+ }
+
+
+ printf (" Pad[");
+ printf (" %6d %6d %6d %6d",
+ mm2mils100(x1),
+ mm2mils100(y1),
+ mm2mils100(x2),
+ mm2mils100(y2));
+ printf (" %6d %6d %6d",
+ mm2mils100(thickness),
+ mm2mils100(clearance),
+ mm2mils100(mask));
+ printf (" \"%s\" \"%s\" \"square%s%s\"]\n",
+ name, num, options == "" ? "" : ",", options);
+ }
+
+ public void pad_mm_clear_options(real center_x,
+ real center_y,
+ real width,
+ real height,
+ real clearance,
+ string name,
+ string num,
+ string options)