adding checks at 3D edges/corners for physical BC setting