Click or drag to resize
SoVectorizeActionSetPolygonOffset Method

Method to set the Z offset to be applied to polygons in normalized device coordinates (-1 to 1 space).

Namespace: OIV.HardCopy
Assembly: OIV.HardCopy (in OIV.HardCopy.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public void SetPolygonOffset(
	float offset
)

Parameters

offset
Type: SystemSingle
Remarks

This is useful for separating coplanar lines and polygons. Similar to OIV.Inventor.Nodes.SoPolygonOffset, a positive offset value moves the primitives away from the camera and a negative value pulls them closer. There are separate methods for lines (OIV.HardCopy.SoVectorizeAction.SetLineOffset(System.Single)) and markers (OIV.HardCopy.SoVectorizeAction.SetMarkerOffset(System.Single)). The default value for the offset methods is zero. Generally applications should avoid using lines and polygons that are exactly coplanar. Correct results cannot be guaranteed for normal or vectorized rendering. OIV.Inventor.Nodes.SoPolygonOffset can significantly reduce the problem for normal rendering, but has no effect on vectorized rendering. However a Z offset of approximately 0.01 applied to polygons will usually improve the appearance of vectorized coplanar primitives. Applying too large an offset may cause the converse visual artifact where lines that should be hidden become visible.

See Also