Ported triangle3d.d