How can I retrieve point position without adding or selecting point, only by clicking with mouse on rhino window. The point location is always xy plane.
Should I use:
CRhinoGetPoint gp;
Similarly to command CurveBoolean when it ask to click inside region.
What is the input workflow inside?
// Prompt for base point
CRhinoGetPoint gp;
gp.SetCommandPrompt(L"Base point");
gp.ConstrainToConstructionPlane(FALSE);
gp.GetPoint();
if (gp.CommandResult() != CRhinoCommand::success)
return gp.CommandResult();
// Get first picked point
ON_3dPoint origin = gp.Point();