It is not that complicated.

There have been setups using a sturdy tripod for the camera, some slide projectors for slit lighting, all based on scissor type lab-elevators for height adjustment, and the object itself too on such an elevator.

And once there was an all-inclusive device for doing such photography.