Rotating objects with 3d mouse

Hi all.

I was testing a way to move rhino objects using the 6-axis input of the 3d mouse…
I’m sharing the VERY rough code. Backup your pc before using it! :rofl:
It make rhino crash sometime, like if you try to move a meshable object (surfaces, polysurfaces).

It uses a “decoy” viewport which is reset constantly but applies the rotation+movement to the selected objects.

Just as a proof of concept…
3dconnexion_rotate (4.6 KB)


Rhino.DocObjects.RhinoObject obj;
obj.Geometry.Transform(Rhino.Geometry.Transform.PlaneToPlane(startplane, endplane));

Remeshing is triggered, even when is just a orientation. Ways to avoid that?
Using Gumball doesn’t trigger remeshing…


Haha, this looks awesome!
Can’t wait to give it a go…maybe on the weekend when the computer is less mission-critical!