Hi,
I use Get2dRectangle() to get points.
bool b = false;
while( true )
{
CRhinoGetPoint gp;
gp.SetCommandPrompt( _T("Drag a window to select points") );
gp.SetGetPointCursor( RhinoApp().m_default_cursor );
gp.ConstrainToTargetPlane();
gp.AcceptNothing();
CRhinoGet::result res = gp.Get2dRectangle( 0, 0, FALSE, PS_DOT );
if( res == CRhinoGet::nothing ) break;
else if( res == CRhinoGet::cancel ) {
b = false;
break;
}
else if( res != CRhinoGet::rect2d ) continue;
When program running at gp.Get2dRectangle(), I use “Lasso points” to select points.
In Rhino4 it works, in Rhino5 it does not works.
How can I do?
Best Regard,
Vaker