A c# conversion of T3D's tools