Click or drag to resize
SoVectorizeActionSetHLHSRMode Method

Sets the Hidden Line and Hidden Surface Removal mode.

Namespace: OIV.HardCopy
Assembly: OIV.HardCopy (in OIV.HardCopy.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public virtual void SetHLHSRMode(
	SoVectorizeActionHLHSRModes mode
)

Parameters

mode
Type: OIV.HardCopySoVectorizeActionHLHSRModes
Remarks

Possible values of mode:

  • OIV.HardCopy.SoVectorizeAction.HLHSRModes.NO_HLHSR. Hidden lines and hidden surfaces are not removed.

  • OIV.HardCopy.SoVectorizeAction.HLHSRModes.HLHSR_SIMPLE_PAINTER. Simple painter's algorithm is used for HLHSR. Lines and surfaces are sorted by their maximum Z depth and displayed in order from front to back so lines and surfaces that are in the foreground are drawn last. If the scene contains interpenetrating primitives, there may be visibility errors in the resulting output.

  • OIV.HardCopy.SoVectorizeAction.HLHSRModes.HLHSR_PAINTER. Like the simple painter's algorithm, the primitives are depth sorted and displayed from front to back. In addition, some ambiguities where the polygons' Z extents overlap are resolved. Primitives that intersect other primitives are split and the new pieces sorted to provide more correct visual results. This mode is slower than the HLHSR_SIMPLE_PAINTER mode.

  • OIV.HardCopy.SoVectorizeAction.HLHSRModes.HLHSR_PAINTER_SURFACE_REMOVAL. This mode is the same as the previous, but a first pass removes surfaces that are completely hidden. The method used to remove hidden surfaces is a pixel rendering method, so for very small surfaces, some accuracy errors can occur. Because some surfaces are removed before the painter's algorithm is applied, this method can be significantly faster than the previous one. Generally output files are smaller than using the previous method.

  • OIV.HardCopy.SoVectorizeAction.HLHSRModes.HLHSR_RASTER. A raster image is generated and vectorized to determine visible primitives.

  • OIV.HardCopy.SoVectorizeAction.HLHSRModes.HIDDEN_LINES_REMOVAL. This mode removes all hidden lines. Whether the screen render style is FILLED or LINES, the output render style will be lines. This mode is very slow but gives correct results.

See Also