Picking tutorial 6

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 faces on the skin.

This tutorial uses a class SelectedFaces inherited from MoMeshCellShape. It uses also the MoMesh::connectFrom in order to use the extracted skin surface as input surface mesh of the cell shape.

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. Picked faces are drawn in cyan. Number of picked faces is displayed in the console window.

FILES:

SEE ALSO

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

SCREENSHOT:


Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/