Geometry Effect on Black Body Radiation with Different Boundary Conditions