mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
* 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:
parent
537f1ba164
commit
5bf0c8d5e4
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user