Given $2$ points $p_1(x_1, y_1, z_1)$ and $p_2(x_2, y_2, z_2)$, they are the diagonally opposite vertices of a cuboid. How can we find the other six vertices?
doing this in a $2$d case ( for a rectangle ) is easy, we can find the perpendicular bisector of the diagonal, and it will give the other 2 points. But I can't find a way to start this for 3d.