Maven module :un.engine : engine-opengl :
Class : un.engine.opengl.phase.picking.PickEvent
Extends/Implements : un.api.event.DefaultEvent
Subclasses : -

author  Johann Sorel


Variables : -
Functions : PickEvent, getSelection, getPrimitiveId, findVertexId



public void PickEvent (GLNode pickedObject, int primitiveId)


Get the picked scene object.
return  GLNode, usualy a mesh
public GLNode getSelection ()


Get the gl_PrimitiveId.
return
public int getPrimitiveId ()


Try to find the closest vertex in the selected object.
return  vertex index or -1 if it could not calculated.
public int[] findVertexId (GLProcessContext ctx)