BrunoLevy / geogram

a programming library with geometric algorithms
Other
1.87k stars 126 forks source link

Polygonal mesh is not clipped under GLUP150 and GLUP440 #146

Closed BrunoLevy closed 6 months ago

BrunoLevy commented 7 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 6 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().