I'm trying to fill and outline the shape below. I do this with a combination of GL_LINES and GL_TRIANGLE_STRIP.
Everything looks fine from the top-side.
However, when tilting the model to see underneath, the filled triangle strip does not follow the shape on the top. It doesn't show the "well" where the corresponding bulge is on the top-side. Instead, the fill appears "flat" on the y-plane.
Even though the polygons are not "crossing over themselves", is this the common OpenGL concavity issue??
Or, should it be possible to see the "well" underneath as one would expect?
Top View
Bottom View (with z-fighting between the black fill and GL_LINES, cannot see inside the "well")
My drawing code:
m_vao.bind();
glEnable(GL_POLYGON_OFFSET_FILL);
glPolygonOffset(1.0, 1.0);
glDrawArrays(GL_TRIANGLE_STRIP, m_lineCount, m_vertexArray.size()-m_lineCount);
glDisable(GL_POLYGON_OFFSET_FILL);
glDrawArrays(GL_LINES, 0, m_lineCount);
m_vao.release();