/// <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); }
/// <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); }
/// <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); }