Added new structure for computing 2D/3D boundary correction