Click or drag to resize
SoGLRenderActionSetSortedTrianglesSortFrequency Method

This method specifies the angle between each sorting axis when using the transparency type SORTED_TRIANGLES_XXX or SORTED_OBJECT_TRIANGLES_XXX.

Namespace: OIV.Inventor.Actions
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.36.0 (9.9.36.0)
Syntax
public void SetSortedTrianglesSortFrequency(
	int angle
)

Parameters

angle
Type: SystemInt32
Remarks

Transparent triangles are sorted based on the nearest axis. (in terms of the dot (inner) product). If the triangles have already been sorted on this axis (or the opposite), and the sort result is cached, the triangles are rendered using the cached information.

The default value for sort frequency is 90, meaning that a sorting is made every 90 degrees. If the value is 0, sorting is always done and the camera orientation vector is the axis used for sorting. In this case, no cache is made.

The allowable angular increments for the sort angle are the integer divisors of 90: { 1, 2, 3, 5, 6, 9, 10, 15, 18, 30, 45, 90 }. If the input value is not an integer divisor of 90, Open Inventor will use the next highest integer divisor of 90.

Examples:

  • angle=67 => sort axes every 90 degrees

  • angle=45 => sort axes every 45 degrees

  • angle=37 => sort axes every 45 degrees

Input values will be clamped to the range 0 to 90.

The following figures show the sort axes used for sort frequencies of 90 degrees and 45 degrees.

See Also