Hello everyone,
I have a general question regarding the usage of Rhino Inside in combination with the ViewportControl for WinForms.
I´m trying to implement, when a left mouseclick on the ViewportControl occurs, a Point selection with the Rhino.Input.Custom.GetPoint() class should be possible. However the crosshair for the point selection gets stuck and i can´t retrieve any point information.
This is my current code
private void OnViewportMouseDown(object sender, MouseEventArgs e)
{
using { var input = new Rhino.Input.Custom.GetPoint();
input.EnableDrawLineFromPoint(true);
input.EnableSnapToCurves(true);
input.Get();
}
}
Is this a problem regarding the screen to world transformation?
Many thanks for any suggestions in advance.
Best wishes
Gabriel