Okay. It looks like the same issue was discussed here: mirroring and normals
I will see if normals are the problem.
Update: disabling normal computation fixed the issue. I guess I can use vtkReverseSense and flip normals if the matrix has a negative determinant.