public void updateCurve()
 {
     if (isValid())
     mCurve = new Curves.Cubic3(
         T1.transform.position,
         C1.transform.position,
         C2.transform.position,
         T2.transform.position
     );
 }
 /// <summary>
 /// Adds an RGB control point to the list.
 /// </summary>
 /// <param name="rgb">RGB value to add.</param>
 /// <param name="isoValue">Associated isovalue.</param>
 public void AddRGBControlPoint(Cubic3 rgb, byte isoValue)
 {
     rgbPoints.Add(rgb);
     rgbIsoValues.Add(isoValue);
 }