tpaviot / pythonocc-core

Python package for 3D geometry CAD/BIM/CAM
GNU Lesser General Public License v3.0
1.39k stars 379 forks source link

OCC.Core.Exception.ClassNotWrappedError: SelectMgr_ViewerSelector not wrapped #1380

Closed federicoalberini00 closed 1 week ago

federicoalberini00 commented 3 weeks ago

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