private void surface_MouseClick(object sender, MouseEventArgs e) { if (!DataReady) { return; } bool outOfSurface; var point2D = Surface2Image(new Point(e.X, e.Y), out outOfSurface); if (!outOfSurface && _cropLock == CropLock.None) { _probe.PointSelect(point2D.To3D(_axis, CurrentCutIndex)); } }