How to draw mesh Schwartz Primitive Topology
I can't help with mesh creation but you may like to use volume shader for visualisation.
Notice that the cube has a size of 10 units, and a scale of 1.
Cycles will give more precise results but you can use EEVEE too.
In cycles (orthographic view):

In EEVEE  (perspective view):

I used an emission shader but you can use simple volume shader with some external light.