public void NotifyMouseUp(object sender, MouseButtonEventArgs e) { var VP = sender as ViewPort3D; if (e.ChangedButton == MouseButton.Left) { if (_state == 0) { this.StartPoint = DrawPlane.PointAt(DrawPlane.Project(VP.CurrentPoint)); _state++; } else if (_state == 1) { EndPoint = DrawPlane.PointAt(DrawPlane.Project(VP.CurrentPoint)); VP.Entities.Add(new devDept.Eyeshot.Entities.Line(StartPoint, EndPoint)); VP.ReleaseDrawing <ProfileHelper>(); } } else if (e.ChangedButton == MouseButton.Right) { VP.ReleaseDrawing <ProfileHelper>(); VP.Entities.Clear(); } }
public PointT(devDept.Geometry.Point3D another) : base(another) { }