When generating patterns which are less than a full wave, always generate the last point correctly. When extending a full wave to a line, fixup the last point to the real gyroid position instead of shifting the point.
on_idle can be called too early on wxGtk3/X11. Check for m_initialized before refreshing.