Removed duplicate edges from platform mesh.
Performance optimizations and SIMD support.
Removed trailing whitespaces.