Exemplo n.º 1
0
            protected override void OnPointInput(PointInputEventArgs e)
            {
                bool wasPicked = _picked;

                _picked = false;

                Curve cv = _ent as Curve;

                if (cv != null)
                {
                    Point3d pt =
                        cv.GetClosestPointTo(e.Context.ComputedPoint, false);
                    if (
                        pt.DistanceTo(e.Context.ComputedPoint) <= 0.1
                        // Tolerance.Global.EqualPoint is too small
                        )
                    {
                        _picked = true;
                    }
                }

                // Only update the graphics if things have changed

                if (_picked != wasPicked)
                {
                    TransientManager.CurrentTransientManager.UpdateTransient(
                        this, new IntegerCollection()
                        );
                }
                base.OnPointInput(e);
            }
Exemplo n.º 2
0
 protected override void OnPointInput(PointInputEventArgs e)
 {
     base.OnPointInput(e);
 }