private void SetBounds()
 {
     bounds = curve.Bounds();
 }