* Also account for individual element visibility flag when generating the mesh wire-frame and filled elements lists for the OpenGL mesh visualisation.

This commit is contained in:
Philippose Rajan 2010-08-09 18:00:30 +00:00
parent 537f1ba164
commit 5bf0c8d5e4

View File

@ -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))