In both cases a rule is used which follows from certain laws. The boundary condition for the sleeves are that they must be connected to the jacket so that they hang without wrinkles. The boundary conditions in the electrostatic fields follow the fundamental field equations.