Three-dimensional Structures of Magnetostatic Atmospheres. VII. Magnetic Flux Surfaces and Boundary Conditions