Rotate around arbitrary Rotational Center (v4.8)
The example shows a simple scene based on ILCamera. Common mouse interaction applies. A new interactive mode is enabled by attaching to the MouseDown event of the panel. In the event handler, for MouseDown events of the left mouse button together with the ALT key pressed, the current position of the mouse is taken as a new rotational center. Extended picking information are acquired first in order to determine the exact point on the scene the mouse clicked on. This point is marked with a red dot and taken as the new rotational center for all common rotations for now on.
The reset action taken when double clicking on the scene is still valid.
This example recognizes clicks on triangle surfaces only. One may extend it to also support clicks on lines / points / labels.
This example requires ILNumerics Visualization Engine 4.8 or later.
Last modified: March 30 2016 19:29