Restored working tesselate code

fixed crap