2010-07-14 07:11:00 -05:00
|
|
|
import CIF
|
|
|
|
circuit = CIF.Circuit("Transistor", "micro", 0.001)
|
|
|
|
poly1 = CIF.Polygon(6)
|
2010-06-11 09:49:21 -05:00
|
|
|
poly1.addPoint(130, 290)
|
|
|
|
poly1.addPoint(540, 290)
|
|
|
|
poly1.addPoint(540, 690)
|
|
|
|
poly1.addPoint(130, 690)
|
|
|
|
circuit.addPolygon(poly1)
|
|
|
|
|
2010-07-14 07:11:00 -05:00
|
|
|
poly2 = CIF.Polygon(17)
|
2010-06-11 09:49:21 -05:00
|
|
|
poly2.addPoint(305, 150);
|
|
|
|
poly2.addPoint(365, 150);
|
|
|
|
poly2.addPoint(365, 830);
|
|
|
|
poly2.addPoint(305, 830);
|
|
|
|
circuit.addPolygon(poly2)
|
|
|
|
|
|
|
|
circuit.writeToFile("./transistor.cif")
|