private void CreateGirth(string script) { IFitPoint[] fits = new IFitPoint[2]; int nS = script.IndexOf("tarting"); nS = script.IndexOf(' ', nS); fits[0] = ReadFitPoint(script, ++nS); nS = script.IndexOf("topping"); nS = script.IndexOf(' ', nS); fits[1] = ReadFitPoint(script, ++nS); if (Curve == null) Curve = new MouldCurve(script.Substring(7, 5), m_sail, fits); else { Curve.Label = script.Substring(7, 5); Curve.Fit(fits.ToArray()); } }