I'm not familiar with the 'boundary element method', nor do I understand what s is. Is it the length of a line from the origin to a point on the polygon? Is it the length of one side of a polygon?