About HLR

Hidden Line Removal (also known as HLR) lets you print in vector mode the viewed edges and outlines of 3D objects. It is an extension of the Wireframe rendering mode where lines (or segments of lines) visually occluded by surfaces are not drawn.

Note: In HLR mode, the color of drawn edges is the color of the surface they belong to.

This page discusses:

HLR Algorithms

You can use two HLR algorithms to compute a HLR scene: an exact mode and a polyhedral mode.

  • Exact mode uses exact geometry.
  • Polyhedral mode computes HLR on nonexact geometry in third-party content, in CGR files (when working with the cache system, for example), or in specific V4 elements.

The exact mode is more CPU- and memory-intensive than the polyhedral mode but gives a more accurate result.

HLR and Dynamic Hidden Line Removal are not computed the same way because Dynamic Hidden Line Removal is primarily based on the graphics card. Therefore, discrepancies can appear between the two results.

For example, on screen in 2D Layout for 3D Design in HRD mode, the intersection profile of an object with a front cutting plane or a back-clipping plane is not visible. However, the HLR print result shows this intersection profile:

Shading with Edges HRD HLR






Regarding transparent faces, HLR algorithms consider them as opaque, which means that the objects behind these faces are hidden. On the contrary, the HRD rendering mode considers transparent faces as completely transparent by default. To force the HRD mode to consider transparent faces as opaque, use the Perform transparent faces as opaque in HRD mode option.

Linetype

The linetype and the line thickness of drawn edges are taken into account in HLR rendering mode. This means that the linetype displayed in the print preview is the linetype you see in the 3D. For example, if the linetype is "empty", edges are not visible.

Exact and Polyhedral Modes

Some restrictions apply to both exact and polyhedral modes.

Exact Mode

The behavior might not be correct in the following cases:

  • HLR behaves badly when you select the Display all elements using Z-buffer depth option.
  • HLR behaves badly with points, certain kinds of line, texts, and images as soon as they are in Z mode (that is, they participate in the Z-buffer).
  • You cannot remove smooth edges when using HLR if the three following conditions are fulfilled at the same time:

    • The object was designed in V5 (for example a CATPart).
    • The object was first created before V5R16.
    • The session uses the cache management or only the CGR file of the CATPart object is inserted in the product, not the CATPart itself.

  • You cannot remove smooth edges when using HLR if the tab viewpoint is CONIC.

As this mode is based on exact geometry, the result is more precise. However as explained above, this mode is CPU- and memory-intensive and some restrictions might occur in specific cases. For example, you can encounter problems with clashing bodies because some geometric elements are not generated. To by-pass this limitation, you can manually resolve the intersection topology using an appropriate sequence of Boolean operations.

In exact mode, the smoothness of the edges is not taken into account and therefore, you cannot switch them off or on.

Polyhedral Mode

In this mode, the complexity of the geometry (the number of triangles for each face of a surface) is limited. Attributes applied to edges, such as the linetype or the thickness, are those of the original edges as far as possible. When it is impossible to use the original attributes, default attributes apply instead.

In polyhedral mode, the smoothness of the edges is not taken into account and therefore, you cannot switch them off or on.

Exact Mode Polyhedral Mode




On top of the green cylinder, the Exact mode avoids SAG effects on printed curves. The clash between the green and blue bodies is supported in polyhedral mode only.

The result of the Boolean operator between the two blue pad bodies is supported in both exact and polyhedral modes:



Note: When working with the Activating clipping frame, the Clip View or the Sectioning command in a 2D Layout for 3D Design or in sectioning context, the polyhedral HLR mode is used. In this case, some specific geometry elements such as curved pipes or cylinders might not be affected by clipping views, sections, or polygonal traps during the HLR rendering process.

For more information on: