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.



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


Open Inventor Toolkit reference manual, generated on 1 Nov 2022
Copyright © Thermo Fisher Scientific All rights reserved.