Use TempVars for triangle processing instead of explicit allocations, speeds up processing by around 30%