examples/3d/pointPickerExample/README.md
--
This openFrameworks example demonstrates how to load a .ply file ( Polygon File Format ) into a mesh. Each of the points are identifible with their index exposed by mousing near it.
In the code, pay attention to:
ofSetVerticalSync to synchronize the redraw of the screen to the vertical refresh of your screenmesh.load("lofi-bunny.ply") to load a .ply file into the meshglPointSize(2)mesh.drawVerticescam.begin() and cam.end()cam.worldToScreen(mesh.getVertex(i))cur.distance(mouse) to determine distance between the mouse coordinates and that of the vertex. Lowest distance is identified as the nearest vertex to the mouse.ofDrawLine(nearestVertex,mouse)When launching this app, you should see
Instructions for use: