I just saw this way to let the user define a plane and I think it’s very nice. Actually I have been looking for this. It let’s one chose an Xaxis and then consecutively Y. The nice thing is that you pretty much see the outcome of the operation in advance.
I did not find this in the Rhino.Input namespace.
Any ideas here?
it is likely a point picker with a dynamic display override to draw geometries. Below is a simple python example which might help. Use _EditPythonScript to open and run it. If you pick the third point with elevation (hold CTRL) before you pick, you’ll see the geometries follow dynamically.
I’ve left it in for reference because usually it is a bad habit to perform calculations directly in the OnDynamicDraw function (it is meant for display and called for every frame). The code would be technically better if it makes all calucations in the OnMouseMove function and stores the data in class wide variables which are then accessed from OnDynamicDraw.
OnMouseMove is called but empty. But OnDynamicDraw is called in all views by default on every frame, eg. If you change your view orientation. You can get the view it draws at a time from e.Viewport. Does this help ?