Click or drag to resize
SoGetPrimitiveCountActionSetDecimationValue Method (SoDecimationTypeElementTypes, Single)

Sets decimation type and percentage.

Namespace: OIV.Inventor.Actions
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public void SetDecimationValue(
	SoDecimationTypeElementTypes type,
	float percentage
)

Parameters

type
Type: OIV.Inventor.ElementsSoDecimationTypeElementTypes
percentage
Type: SystemSingle
Remarks

Percentage should be a number between 0.0 and 1.0 (1.0 is full complexity).

Type is one of:

OIV.Inventor.Elements.SoDecimationTypeElement.Types.LOWEST Lowest complexity possible for scene.

OIV.Inventor.Elements.SoDecimationTypeElement.Types.HIGHEST Highest complexity possible for scene.

OIV.Inventor.Elements.SoDecimationTypeElement.Types.AUTOMATIC Scene uses decimation percentage; LODs calculate range value and then adjust them with percentage.

OIV.Inventor.Elements.SoDecimationTypeElement.Types.PERCENTAGE Scene uses decimation percentage; LODs use child based solely on decimation without looking at camera position.

See Also