public void ApplyToPoint(DPOW.Reader.Point destPoint, float t)
        {
            Ciloci.Flee.ExpressionContext c = new Ciloci.Flee.ExpressionContext();
            c.Imports.AddType(typeof(Math));
            c.Variables["t"] = t;
            if (x != string.Empty)
            {
                destPoint.X = (float)c.CompileGeneric <double>(x).Evaluate();
            }
            if (y != string.Empty)
            {
                destPoint.Y = (float)c.CompileGeneric <double>(y).Evaluate();
            }
            if (z != string.Empty)
            {
                destPoint.Z = (float)c.CompileGeneric <double>(z).Evaluate();
            }
            if (u != string.Empty)
            {
                destPoint.U = (float)c.CompileGeneric <double>(u).Evaluate();
            }
            if (v != string.Empty)
            {
                destPoint.V = (float)c.CompileGeneric <double>(v).Evaluate();
            }

            Color newColor = destPoint.Color;

            gradient.ApplyToColor(ref newColor, t);
            destPoint.Color = newColor;
        }
        public ParametricPoint(DPOW.Reader.Point originalPoint)
        {
            x = originalPoint.X.ToString();
            y = originalPoint.Y.ToString();
            z = originalPoint.Z.ToString();
            u = originalPoint.U.ToString();
            v = originalPoint.V.ToString();

            gradient = new ParametricColor(originalPoint.Color);
        }