I have a 3D .OBJ
model file that is loaded in my OpenGL ES 2 Android application using ASSIMP library. All the faces are triangulated.
I want to draw the wireframe for my mesh. In OpenGL we have something called glPolygonMode
that enables wireframe drawing just in one line.
Is there a function I can use to convert those triangulated faces into a pair of Line segments and then draw these line segments using GL_LINES
?
Any better approach to draw wireframe for 3D mesh in OpenGL ES 2 would be appreciated. Maybe something based on GLSL shader.