See the following screenshot It would be better to first calculate the convex hull and determine the beamshape ellipse from it.