private void ShowSplineLength(SplineBase spline, GUIStyle style)
        {
            float distance     = spline.EvalDistance();
            float splineLength = spline.EvalSplineLength(GetStepsPerCurve());

            Handles.Label(spline.GetPoint(0.5f), string.Format("D: {0:0.00} m, S: {1:0.00} m", distance, splineLength), style);
        }
        private void ShowLength(SplineBase spline, int curveIndex, GUIStyle style)
        {
            float distance     = spline.EvalDistance(curveIndex);
            float curveLength  = spline.EvalCurveLength(curveIndex, GetStepsPerCurve());
            float splineLength = spline.EvalSplineLength(GetStepsPerCurve());

            Handles.Label(spline.GetPoint(0.5f, curveIndex), string.Format("D: {0:0.00} m, C: {1:0.00} m, S: {2:0.00}", distance, curveLength, splineLength), style);
        }