public void UnExecute() { foreach (MPPoint point in points) { parent.Insert(point.PointNum, point); } }
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); } }
public void UnExecute() { parent.Insert(point.PointNum, point); }