Example #1
0
        /// <summary>
        /// Updates last point added with the previous point
        /// </summary>
        /// <param name="point">Last point added to the list</param>
        public void CloneLastPoint(BezierPointInfo point)
        {
            if (this.bezierLinePoints.Count > 1)
            {
                var prev = this.bezierLinePoints[this.bezierLinePoints.Count - 2];
                prev.OutboundHandle = -prev.InboundHandle;

                point.Position      = prev.Position + (2 * prev.OutboundHandle);
                point.InboundHandle = prev.InboundHandle;
                point.Color         = prev.Color;
                point.Thickness     = prev.Thickness;
            }
            else
            {
                point.Color     = Color.White;
                point.Thickness = 0.1f;
            }

            this.RefreshBezierPointsInfo();
            this.RefreshMeshes();
        }
Example #2
0
 /// <summary>
 /// Refresh mesh when a value from the list has changed
 /// </summary>
 /// <param name="point">point</param>
 public void RefreshItems(BezierPointInfo point)
 {
     this.RefreshBezierPointsInfo();
     this.RefreshMeshes();
 }