public void UnExecute()
 {
     foreach (MPPoint point in points)
     {
         parent.Insert(point.PointNum, point);
     }
 }
Exemple #2
0
 protected bool PointValidate(List <Vector3> points, Vector3 location, int index)
 {
     if (parent.NoIntersect)
     {
         if (!IntersectionHelperClass.BoundaryIntersectionSearch(points, location, index + 1))
         {
             parent.Insert(index, new MPPoint(index + 1, parent, app, dragObject.MeshName, dragObject.MaterialName, location, MPPointType.Boundary));
             return(true);
         }
         else
         {
             ErrorHelper.SendUserError("Add region point failed", "Region", app.Config.ErrorDisplayTimeDefault, true, this, app);
             return(false);
         }
     }
     else
     {
         parent.Insert(index, new MPPoint(index + 1, parent, app, dragObject.MeshName, dragObject.MaterialName, location, MPPointType.Road));
         return(true);
     }
 }
Exemple #3
0
 public void UnExecute()
 {
     parent.Insert(point.PointNum, point);
 }