mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-07 13:57:28 +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);
|
glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, matcol);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool drawel = !el.IsDeleted();
|
bool drawel = (!el.IsDeleted() & el.IsVisible());
|
||||||
|
|
||||||
if (checkvicinity)
|
if (checkvicinity)
|
||||||
for (int j = 0; j < el.GetNP(); j++)
|
for (int j = 0; j < el.GetNP(); j++)
|
||||||
@ -1388,7 +1388,8 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
const Element2d & el = (*mesh)[sei];
|
const Element2d & el = (*mesh)[sei];
|
||||||
|
|
||||||
bool drawel = !el.IsDeleted();
|
bool drawel = (!el.IsDeleted() & el.IsVisible());
|
||||||
|
|
||||||
if (checkvicinity)
|
if (checkvicinity)
|
||||||
for (int j = 0; j < el.GetNP(); j++)
|
for (int j = 0; j < el.GetNP(); j++)
|
||||||
if (!stlgeometry->Vicinity(el.GeomInfoPi(j+1).trignum))
|
if (!stlgeometry->Vicinity(el.GeomInfoPi(j+1).trignum))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user