BrunoLevy / geogram

a programming library with geometric algorithms
Other
1.8k stars 122 forks source link

Polygonal mesh is not clipped under GLUP150 and GLUP440 #146

Closed BrunoLevy closed 4 months ago

BrunoLevy commented 4 months ago

Lines clipping does not work for mesh of polygonal facets with GLUP150 and GLUP440 (but it works with GLUPES2), Other wide lines are correctly clipped. Other lines of width 1 are not correctly clipped.

BrunoLevy commented 4 months ago

The shader had a #if (GLUP_PRIMITIVE != GLUP_THICK_LINES) statement, and GLUP_PRIMITIVE was not defined (and GLSL was silently ignoring this). Fixed by declaring GLUP_PRIMITIVE in GLUP_context.cpp, in Context::primitive_declaration().