Fixed bug with create triangle func in 3dD