
Thu, 06/17/2021 - 09:18
Forums:
Hi guys,
I'm working with OpenCascade picking system. I can perform well a point/rectangle/polyline selection and query out the selected shapes. But how do I get the intersection point of selected shape (in point selection mode)?
My code is very simple following what is written in: https://dev.opencascade.org/doc/overview/html/occt_user_guides__visualiz...
Thank you.
Thu, 06/17/2021 - 10:42
Hi guys,
Now I can answer this question myself.
It is the AIS_InteractiveContext::MainPicker that helps to query picked information.
Cheers.
Thu, 06/17/2021 - 10:52
StdSelect_ViewerSelector3d provides an extended information about picking results - including 3D point on picked object.
In C++ the code may look like this:
Draw Harness has a commands vmoveto and vstate which implementations in C++ might be used as a code samples:
Wed, 07/14/2021 - 13:37
Hi Kirill,
Thanks for answering. That's great. I managed to play with OCC picking system now.
Cheers,