Rendering problem of triangles
Dear Yade-Dev,
I have problems with rendering of faces of my deformable tetrahedron class that I defined within yade. Within deformable tetrahedrons, each vertex is defined in a list and each face of the deformable tetrahedron also defined in another list including it's connected vertex indices. I create tetrahedrons by importing mesh from a gmsh file where its node numbering order is given in gmsh's manual.
When I try to give opengl the normal of each face with the calculating method given here[1] or even calculating it with the node numbering as given in the user manual of gmsh , I see the coloring difference of the tetrahedrons faces. My drawing function of the deformable elements can be found here[2].
So I want to ask; What may cause the difference of the colors of the faces of tetrahedron with the code given at[2]? Do you suggest a better way to draw a tetrahedron?
[1]http://
[2]https:/
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask burak er for more information if necessary.