public bool Execute()
        {
            this.OriginalControlPoints = OriginalStrokeSketchObject.GetControlPoints();
            bool didDelete = OriginalStrokeSketchObject.DeleteControlPoints(Point, Radius, out NewLines);

            if (OriginalStrokeSketchObject.gameObject.activeInHierarchy)
            {
                NewControlPoints = OriginalStrokeSketchObject.GetControlPoints();
            }
            else
            {
                NewControlPoints = null;
            }
            return(didDelete);
        }
示例#2
0
 public bool Execute()
 {
     this.OldControlPoint = StrokeSketchObject.GetControlPoints()[StrokeSketchObject.getNumberOfControlPoints() - 1];
     StrokeSketchObject.DeleteControlPoint();
     if (this.StrokeSketchObject.getNumberOfControlPoints() == 0)
     {
         SketchWorld.ActiveSketchWorld.DeleteObject(this.StrokeSketchObject);
     }
     return(true);
 }
 public RefineMeshCommand(StrokeSketchObject strokeSketchObject)
 {
     this.StrokeSketchObject = strokeSketchObject;
     OriginalControlPoints   = strokeSketchObject.GetControlPoints();
 }