BrunoLevy / geogram

a programming library with geometric algorithms
Other
1.9k stars 129 forks source link

New demo executable: MeshGfx picking mode #102

Closed sebmestrallet closed 1 year ago

sebmestrallet commented 1 year ago

Add a new demo in src/examples/graphics/demo_Picking/ to show how to retrieve the index of the vertex/facet/cell under the cursor. Related to discussion #88.

I compared the values with the "probe attributes" tool of Graphite.

Note: MeshGfx::set_picking_mode() also accepts MESH_EDGES, but I did not manage to read something other than -1.