Normals problem? ofMesh[SOLVED]

Hello:) I am new one.
I have problem with ofMesh. I am trying to make Dodecahedron
I get points from 3ds model and used addVertex to add it. When I added textures i discovered something strange. I am not expert but i would say some of the mesh triangle is bad normalized. In Blender i can recalculate normals… But what can i do in OpenFrameworks? Thanks for any help : )
It shows how it looks like.


//Sorry that I am not editing earlier post. If I edited it i would must put images in links again. As a new user I can’t add images.

I mean some faces are transparent? Triangle are bad flipped?

Maybe I should write something else.
In nums vector i store vertex coordinates.
I use 2 function to draw object.
One is “render_face” second is “render_object”.
render face

void testApp::render_face(int r, int s, int t, int u, int v, ofImage image){
mesh2.clear();
image.getTextureReference().bind();
ofVec3f p0 = nums[r];
ofVec3f p1 = nums[s];
ofVec3f p2 = nums[t];
ofVec3f p3 = nums[u];
ofVec3f p4 = nums[v];
ofVec2f temp;
mesh2.addVertex(p0);
temp=ofVec2f(int((0.191)*i_size),0);
mesh2.addTexCoord(temp);

mesh2.addVertex(p1);
temp=ofVec2f(0,int((0.588)*i_size));
mesh2.addTexCoord(temp);

mesh2.addVertex(p2);
temp=ofVec2f(int((0.5)*i_size),i_size);
mesh2.addTexCoord(temp);

mesh2.addVertex(p3);
temp=ofVec2f(i_size,int((0.588)*i_size));
mesh2.addTexCoord(temp);

mesh2.addVertex(p4);
temp=ofVec2f(int((0.808)*i_size),0);
mesh2.addTexCoord(temp);

mesh2.draw();

}

In “render_object” i run 12 different “render_face”.
Also in setup I have mesh2.setMode(OF_PRIMITIVE_TRIANGLE_FAN);
What can be bad?
Extra question if i will use “iterator” in vector nums program will work faster?

there’s no problem with the normals or faces, it’s just that you have depth testing disabled and every face is drawn no matter is depth. to enable it, in setup:

ofEnableDepthTest();

or if you need to draw 3d and 2d stuff like guis… you can enable and disable it in draw using:

ofDisableDepthTest();

to disable it

Thanks a lot man!
I am really happy. I have normalsExample run and you save lots of my time;)