Added function to get bounding box of a curve.