Skip to content
Snippets Groups Projects
Commit f2467a6d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix build (still some traces of compounds!)

parent b7612d15
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,6 @@
#include <gmsh/GmshGlobal.h>
#include <gmsh/GModel.h>
#include <gmsh/GEdgeCompound.h>
#include <gmsh/GFaceCompound.h>
#include <gmsh/PView.h>
#include <gmsh/PViewData.h>
#include <gmsh/Context.h>
......@@ -57,33 +55,20 @@ void drawMeshVertex(GVertex *e)
void drawMeshEdge(GEdge *e)
{
if(!e->getVisibility()) {
if(e->getCompound()) {
if(!e->getCompound()->getVisibility()) return;
}
else
return;
}
if(!e->getVisibility()) return;
glLineWidth(CTX::instance()->mesh.lineWidth);
drawArray(e->va_lines, GL_LINES, true);
}
void drawMeshFace(GFace *f)
{
if(!f->getVisibility()) {
if(f->getCompound()) {
if(!f->getCompound()->getVisibility()) return;
}
else
return;
}
if(!f->getVisibility()) return;
drawArray(f->va_lines, GL_LINES, true);
}
void drawMeshRegion(GRegion *r)
{
if(!r->getVisibility()) return;
drawArray(r->va_lines, GL_LINES, true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment