I'm relearning OpenGL in its modern form using https://learnopengl.com
Inspired by the coordinate systems lesson https://learnopengl.com/Getting-started/Coordinate-Systems I started modifying their sample code to try and create a glorified cuboctahedron. Here's my attempt. Everything not shown here is, to the best of my knowledge, the way they provided it. My code is intended to describe six faces of a cube, either connected or exploded depending on the relative values of a and b. However, it draws nonsense, connecting things in a way that makes no sense. Here is what I see using only …