I came up with this way to make cubic infill but instead every cube has 3 convex faces and 3 concave faces.
Every layer could be printed with wavy lines, but in my prototype they were printed as separate line segments and the ordering wsa not efficient.
I printed them in TPU.
Conclusion: there is not much merit in this type of infill structure.