How to draw edge of cube?

Hello,
I just started using OF. I love it, but it’s my first contact with 3d so for start i just edit examples. I have simplify 3dPrimitivesExample to something like that:

...
ofFill();
ofSetColor(100);
ofEnableAlphaBlending();    // turn on alpha blending
ofSetColor(255,0,0,127);
box.draw();   // i still use ofBoxPrimitive
ofDisableAlphaBlending();
...

But I don’t know how to paint edges of my cube in other coloer (WireFrame is not the thing I’m looking for).
Could you please help me and show the best way to do it?

Have you activated ofEnableDepthTest(); in your setup ?

So just the edges? You could draw normally and then draw wireframe on top with thicker lines:

box.draw();
ofSetLineWidth(4.0);
ofSetColor(desiredColor);
box.drawWireframe();

Else you could draw lines manually between each two vertices in your cube, that will give you greater control. Check this out for more.