solidwireframe with quad faces or fgons?

i’m beginning to sneak around the solid wireframe script,
it seems to work only for tri faces.
It would be really interesting to use it with other kind of surfaces than tris because the trick ‘edge to curve-then-bevel’ doesn’t work such nicely than solid wireframe.
Any idea how to transform this script into a ‘solidwireframe-for-every-kind-of-mesh’ script ?