Fixed the off by 2 bug on populatetrianglestrip