Filter3D: Array access refactoring