예제 #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);
        }
예제 #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);
        }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }