Picking tutorial 5

MeshViz Demonstrates simple picking in an interactive program.

This program shows how to pick cells on a mesh representation and how to highlight and manage the list of picked cells. Similar to tutorial 4 but it uses a class SelectedCells inherited from MoMeshCellShape that also implements the MiCellFilterI interface. The SelectedCells is an optimal cell filtering implementation compared to tutorial 4 thanks to an array containing one 1 bit flag per cell. The SelectedCells instance is given to the MoCellFilter instance.

Click on the viewer's arrow icon to switch from viewing mode to selection mode.

Move the mouse cursor over the mesh skin and click the left mouse button. The selected cell is drawn "shrunken" (smaller size) in cyan.

FILES:

SEE ALSO

SoPickedPoint, SoEventCallback, MoMesh, MoMeshSkin, MoMeshCellShape, MoCellFilter, MiCellFilterI, MoFaceDetailI, MoMeshDetail, MoDrawStyle, MoMaterial

SCREENSHOT:


Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/