Snaping to hiden objects


I’d like to add 3 planes XY, YZ and ZX as a “virtual” planes, hide them and be able to snap to the point on their intersection, is it possible? How can I do it?

Try this:

1.) Derive a new class from CRhinoGetPoint.

2.) In your CRhinoGetPoint::OnMouseMove override, test to see if the input point is close enough to one of your planes to “snap.” Use ON_Plane::ClosestPointTo to determine this.

3.) If it was determined that the input point snapped to one of your planes, draw the snapped point in your CRhinoGetPoint::DynamicDraw override. Also, if a snap point was calculated, do not call the base class CRhinoGetPoint::DynamicDraw as it will always draw the current point.

Does this help?

Yes, thanks :smile: