finished tessellation

Now that everything is ported over, I'm going to start refactoring it
and making it better suited for C# programmers