Three-Dimensional Structure and Dust Extinction in the Small Magellanic Cloud