Switched to Unity triangle generation.
Fixed compilation.
Added some extensions.