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

draw volume mesh

parent ba6811d5
Branches
Tags
No related merge requests found
...@@ -93,6 +93,13 @@ void drawMeshFace(GFace *f) ...@@ -93,6 +93,13 @@ void drawMeshFace(GFace *f)
drawArray(f->va_lines, GL_LINES, true); drawArray(f->va_lines, GL_LINES, true);
} }
void drawMeshRegion(GRegion *r)
{
if(!r->getVisibility()) return;
drawArray(r->va_lines, GL_LINES, true);
}
void drawContext::drawMesh() void drawContext::drawMesh()
{ {
if(!CTX::instance()->mesh.draw) return; if(!CTX::instance()->mesh.draw) return;
...@@ -119,6 +126,8 @@ void drawContext::drawMesh() ...@@ -119,6 +126,8 @@ void drawContext::drawMesh()
std::for_each(m->firstEdge(), m->lastEdge(), drawMeshEdge); std::for_each(m->firstEdge(), m->lastEdge(), drawMeshEdge);
if(status >= 2) if(status >= 2)
std::for_each(m->firstFace(), m->lastFace(), drawMeshFace); std::for_each(m->firstFace(), m->lastFace(), drawMeshFace);
if(status >= 3)
std::for_each(m->firstRegion(), m->lastRegion(), drawMeshRegion);
} }
CTX::instance()->mesh.changed = 0; CTX::instance()->mesh.changed = 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment