From 5bf0c8d5e437514492caa187fb459d47103ee6bf Mon Sep 17 00:00:00 2001 From: Philippose Rajan Date: Mon, 9 Aug 2010 18:00:30 +0000 Subject: [PATCH] * Also account for individual element visibility flag when generating the mesh wire-frame and filled elements lists for the OpenGL mesh visualisation. --- libsrc/visualization/vsmesh.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libsrc/visualization/vsmesh.cpp b/libsrc/visualization/vsmesh.cpp index 62b6b59f..ea879886 100644 --- a/libsrc/visualization/vsmesh.cpp +++ b/libsrc/visualization/vsmesh.cpp @@ -1040,7 +1040,7 @@ namespace netgen glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, matcol); } - bool drawel = !el.IsDeleted(); + bool drawel = (!el.IsDeleted() & el.IsVisible()); if (checkvicinity) for (int j = 0; j < el.GetNP(); j++) @@ -1388,7 +1388,8 @@ namespace netgen { const Element2d & el = (*mesh)[sei]; - bool drawel = !el.IsDeleted(); + bool drawel = (!el.IsDeleted() & el.IsVisible()); + if (checkvicinity) for (int j = 0; j < el.GetNP(); j++) if (!stlgeometry->Vicinity(el.GeomInfoPi(j+1).trignum))