Function calculateShapeBounds

Calculates bounds considering both points and Bezier curves defined by lines