Click or drag to resize
SbViewVolumeProjectFromScreen Method (SbVec3f, SbVec3f)
Maps a 3D point in normalized screen coordinates (0 <= x,y,z <= 1) to a 3D world point.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.1.1.Release.7989217834dd2b99155f267b6c8c70f9feacdedd
Syntax
public void ProjectFromScreen(
	ref SbVec3f src,
	out SbVec3f dst
)

Parameters

src
Type: OIV.InventorSbVec3f
Input point in normalized screen coordinates.
dst
Type: OIV.InventorSbVec3f
Output point in world coordinates.
Remarks

The resulting Z coordinate represents the normalized distance at which the point would be back projected, ranging from 0 at the near clipping plane to 1 at the far clipping plane. This method is simply the inverse of ProjectToScreen(SbVec3f, SbVec3f). See also GetPlanePoint(Single, SbVec2f).

Note: This is a convenience function that calls the GetMatrix method and apply Inverse on it, then transforms the point. The GetMatrix and Inverse calls are somewhat expensive, so if you need to project a large number of points you should call these methods just once and apply the matrix to each point using MultVecMatrix(SbVec3f, SbVec3f).

See Also