A bit of a curve - just wrong. Fixed a bug in mesh generation.