Triangle source code, optimized for mobile.