Click or drag to resize
SoWinViewerGetDepthValue Method

Namespace: OIV.Inventor.Win.Viewers
Assembly: OIV.Inventor.Win (in OIV.Inventor.Win.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public bool GetDepthValue(
	int x,
	int y,
	out float depth
)

Parameters

x
Type: SystemInt32
y
Type: SystemInt32
depth
Type: SystemSingle

Return Value

Type: Boolean
Remarks

Returns the depth value, scaled between 0.0 and 1.0, from the depth buffer at window coordinates x, y. This is only valid after a traversal of the scene graph e.g., in a post render callback (see OIV.Inventor.Win.SoWinRenderArea.PostRenderCallback).

See Also