Three-dimensional topological twistronics