From 94e5714145e4671caf50114df153c0b833521ab7 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 2 Apr 2014 05:39:25 +0000 Subject: [PATCH] draw volume mesh --- contrib/mobile/drawMesh.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/contrib/mobile/drawMesh.cpp b/contrib/mobile/drawMesh.cpp index e2bed3a74d..3694af0962 100644 --- a/contrib/mobile/drawMesh.cpp +++ b/contrib/mobile/drawMesh.cpp @@ -93,6 +93,13 @@ void drawMeshFace(GFace *f) 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() { if(!CTX::instance()->mesh.draw) return; @@ -119,6 +126,8 @@ void drawContext::drawMesh() std::for_each(m->firstEdge(), m->lastEdge(), drawMeshEdge); if(status >= 2) std::for_each(m->firstFace(), m->lastFace(), drawMeshFace); + if(status >= 3) + std::for_each(m->firstRegion(), m->lastRegion(), drawMeshRegion); } CTX::instance()->mesh.changed = 0; } -- GitLab