Click or drag to resize
SoHandleEventActionGetPickedPoint Method

Returns the frontmost object hit (as an OIV.Inventor.SoPickedPoint) by performing a pick based on the mouse location specified in the event for which the action is being applied.

Namespace: OIV.Inventor.Actions
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public SoPickedPoint GetPickedPoint()

Return Value

Type: SoPickedPoint
Remarks

The first time this is called for a particular event, an OIV.Inventor.Actions.SoRayPickAction is applied to find this object; subsequent calls for the same event return the same information. The storage for the picked point remains valid as long as the action is not re-applied or deleted.

Note: The applied OIV.Inventor.Actions.SoRayPickAction does not compute texture coordinates and normal vector for the picked point. Thus, OIV.Inventor.Actions.SoHandleEventAction.GetPickedPoint().getNormal() returns (0,0,0) and OIV.Inventor.Actions.SoHandleEventAction.GetPickedPoint().getTextureCoords() returns (0,0,0,0).

See Also