diff --git a/wrap/gl/trimesh.h b/wrap/gl/trimesh.h index d8910852..185c6d8d 100644 --- a/wrap/gl/trimesh.h +++ b/wrap/gl/trimesh.h @@ -832,6 +832,19 @@ void DrawWire() DrawFill(); glPopAttrib(); } + if(m->fn==0 && m->en>0) + { + glPushAttrib(GL_ENABLE_BIT); + glDisable(GL_LIGHTING); + glBegin(GL_LINES); + for(typename mesh_type::EdgeIterator ei=m->edge.begin();ei!=m->edge.end(); ++ei) + { + glVertex((*ei).V(0)->P()); + glVertex((*ei).V(1)->P()); + } + glEnd(); + glPopAttrib(); + } // { // if(!HasEdges()) ComputeEdges();