Skip to content

rendering: Do not offset vertices for drawing polygon edges

Sankhesh Jhaveri requested to merge sankhesh/vtk:surface_edge_offsets into master

Render surface with edges uses a geometry shader to draw a triangle strip at the edges of polygons.

Apart from calculating the edge equation, it was offsetting the vertex positions to accommodate wide lines.

However, this would lead to overlapping inner edges that become prominent with opacity < 1. This change removes this offset.

Before After
TestGlyph3DMapperEdges TestGlyph3DMapperEdges

Note that with this change, mesh boundary edges will be half as wide as the inner edges.

Edited by Sankhesh Jhaveri

Merge request reports