Added: Triangle3d.cs and refactored event handling into C#