When KiCad has to generate a polygon from circles and/or arcs it must approximate them with short segments. The shorter the segment the less error, but there will always be some error. GetEffectivePolygon() wants to know if you want that error outside the shape (so it will be slightly larger than a “perfect” shape) or inside. (Outside is 0, inside is 1.)
Thanks @JeffYoung !!
I tried below
poly = pads[0].GetEffectivePolygon(aErrorLoc=1)
poly = pads[0].GetEffectivePolygon(aErrorLoc=‘1’)
but am stopped with error TypeError: in method ‘PAD_GetEffectivePolygon’, argument 2 of type ‘ERROR_LOC’
Am trying to find how create datatype of ERROR_LOC or if am doing something wrong here.
Am not able find the same from documentation too
if we remove " we will end up in “not defined” error, need to know which class/module has the ERROR_LOC defined. So that we can use them.
poly = pads[0].GetEffectivePolygon(aErrorLoc = ERROR_INSIDE)
Traceback (most recent call last):
File “”, line 1, in
NameError: name ‘ERROR_INSIDE’ is not defined