I want to render the outlines + creases with opengl but it's not going as I wish. Can someone, please help me to solve this problem? So far the outline it's rendered like this.
At this moment what I'm doing is: Frist I do this:
GL.Enable(EnableCap.PolygonOffsetFill);
GL.PolygonOffset(0, -1f);
GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill);
GL.DepthFunc(DepthFunction.Lequal);
GL.DrawArrays(PrimitiveType.Triangles, 0, verticesList.Count);
GL.Disable(EnableCap.PolygonOffsetFill);
Then I render again like this:
GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Line);
GL.LineWidth(5f);
GL.DepthFunc(DepthFunction.Less);
GL.DrawArrays(PrimitiveType.Triangles, 0, verticesList.Count);
I want to render those green lines as well:
The wireframe over the filled shape looks like this:
Thanks in advance!


