Set material to the solid

Hello
I use the node “Set material” for the solid

But the result is not correct. It seems like something is wrong with the material direction

The same material is defined for the other solid and it looks correct

So, the question is how to set material to the solid in correct way