Click or drag to resize
ScRayPickActionSetRay Method (SbVec3f, SbVec3f, Single, Single)

Sets a world-space ray along which to pick.

Namespace: OIV.ScaleViz.Actions
Assembly: OIV.ScaleViz (in OIV.ScaleViz.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public void SetRay(
	SbVec3f rayStart,
	SbVec3f rayDirection,
	float nearDistance,
	float farDistance
)

Parameters

rayStart
Type: OIV.InventorSbVec3f
rayDirection
Type: OIV.InventorSbVec3f
nearDistance
Type: SystemSingle
farDistance
Type: SystemSingle
Remarks

The ray is defined as a world space starting point and direction vector. The direction vector will be normalized automatically. The last two arguments specify optional near and far plane clipping during the pick operation. These values are distances from the start point along the direction vector, similar to nearDistance and farDistance in SoCamera. A negative distance (such as the default values) means disable clipping to that plane.

NOTE: You can use this method or the setPoint / setNormalizedPoint methods. Whichever method you call last is the one that takes effect.

See Also