How to draw only edges of the model?

I have a cube
I found renderstyle variable and get wireframe easily:

But actually I don’t need diagonal edges. I want to get this:

I have tried to find a solution, but there is only one similar question was asked:

Any idea?

The meshes are imported in this engine (as well as many others) using triangles - there is no information about quads or other grouping. I guess one could process triangles, and if two triangles share an edge and are both in the same plane, this edge could be skipped?

1 Like

@Gradess maybe this post will help:How to render full outlines as a post process - tutorial