No 3D model is created for the masked areas (as long as the "contrain features by mask" box in the "align photos" dialoge is checked), and the masked areas are ignored in creating the texture atlas. I have, however, recently observed that points were detected and matched between images even for masked areas, but they are labeled as "invalid". So I don't know exactly how this is handled behind the scenes.