I am currently working on a project where I need to retrieve the point on a 3D object's surface that is directly under my mouse cursor. The goal is to move my mouse across the object's surface and display the current point that the cursor is pointing at.
So far, I've managed to obtain the following object:
selector = self._display.Context.SelectionManager()
print(selector.Selector())
This returns a <Swig Object of type 'opencascade::handle< SelectMgr_ViewerSelector > *' at 0x00000231865C8A20>. The _display variable is an instance of a Viewer3d object.
I would like to know if there is a more effective method to achieve this and how can i handle this type of object.
Thanks you
I am currently working on a project where I need to retrieve the point on a 3D object's surface that is directly under my mouse cursor. The goal is to move my mouse across the object's surface and display the current point that the cursor is pointing at.
So far, I've managed to obtain the following object: selector = self._display.Context.SelectionManager() print(selector.Selector()) This returns a <Swig Object of type 'opencascade::handle< SelectMgr_ViewerSelector > *' at 0x00000231865C8A20>. The _display variable is an instance of a Viewer3d object. I would like to know if there is a more effective method to achieve this and how can i handle this type of object. Thanks you