Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
Detail Selection

VSG extension Select shapes and retrieve details

DESCRIPTION:

    Here is an example of using SoExtSelection for fast selection of large number of primitives (shape details). This example displays a set of NUM_POINTS random points laying along a sphere. Only points in front of the sphere are selectable (facing the camera). For this we do not use any more the VISIBLE_SHAPES lasso mode because :

    • it does not allow to retrieve selection details with the primitive callbacks.
    • it does not allow to select overlapping shapes (e.g. points overlapping due to display resolution)

    Highlighting is done by changing explicitly individual point color (we don't use here SoXXXHighlightRenderAction).

FILES:

    • Inventor/Features/ExtSelection/DetailSelection/detailSelection.cxx

SEE ALSO

SoPickedPoint SoPointDetail SoExtSelection

SCREENSHOT: