Ejemplo n.º 1
0
        /// <summary>
        /// Add a new knot (in-editor)
        /// </summary>
        public void AddKnot(Vertex position)
        {
            PathDataEntry newKnot = new PathDataEntry(position.X, position.Y, position.Z);

            splineData.Path.Add(newKnot);
            CalcDistance(splineData.Path.Count - 1);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Add a new knot (in-editor)
        /// </summary>
        public void AddKnot()
        {
            PathDataEntry newKnot = new PathDataEntry(splineData.Path[splineData.Path.Count - 1].Position.X + 10, splineData.Path[splineData.Path.Count - 1].Position.Y, splineData.Path[splineData.Path.Count - 1].Position.Z);

            splineData.Path.Add(newKnot);
            CalcDistance(splineData.Path.Count - 1);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Add a pre-defined knot.
 /// </summary>
 /// <param name="knot"></param>
 public void AddKnot(PathDataEntry knot)
 {
     splineData.Path.Add(knot);
     CalcDistance(splineData.Path.Count - 1);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Add a pre-defined knot.
 /// </summary>
 /// <param name="knot"></param>
 public void AddKnot(PathDataEntry knot)
 {
     splineData.Path.Add(knot);
     CalcDistance(splineData.Path.Count - 1);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Add a new knot (in-editor)
 /// </summary>
 public void AddKnot(Vertex position)
 {
     PathDataEntry newKnot = new PathDataEntry(position.X, position.Y, position.Z);
     splineData.Path.Add(newKnot);
     CalcDistance(splineData.Path.Count - 1);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Add a new knot (in-editor)
 /// </summary>
 public void AddKnot()
 {
     PathDataEntry newKnot = new PathDataEntry(splineData.Path[splineData.Path.Count - 1].Position.X + 10, splineData.Path[splineData.Path.Count - 1].Position.Y, splineData.Path[splineData.Path.Count - 1].Position.Z);
     splineData.Path.Add(newKnot);
     CalcDistance(splineData.Path.Count - 1);
 }