eseo-emc / pypcb

Generate Gerber and Excellon from within Python scripts
2 stars 0 forks source link

DrawGroup(list) #28

Open SjoerdOptLand opened 11 years ago

SjoerdOptLand commented 11 years ago

Can contain anything that has draw(), rectangle() and move() methods.

draw() calls draw() upon all items rectangle() takes the maximum of all items setting a corner or the center moves all items

SjoerdOptLand commented 11 years ago

And, eventually mirror()

SjoerdOptLand commented 11 years ago

Instead of calling the rectangle() function of every constituent, one might also call the convecHull() of every constituent. Only at the top level, this convex hull is casted to an outer rectangle()