another optional table in Topology

This commit is contained in:
Joachim Schoeberl 2021-06-24 07:38:49 +02:00
parent 971d6bb465
commit b65d3c188f
2 changed files with 7 additions and 3 deletions

View File

@ -49,6 +49,7 @@ namespace netgen
{
buildedges = static_buildedges;
buildfaces = static_buildfaces;
buildvertex2element = static_buildvertex2element;
timestamp = -1;
}
@ -75,6 +76,7 @@ namespace netgen
bool MeshTopology :: static_buildedges = true;
bool MeshTopology :: static_buildfaces = true;
bool MeshTopology :: static_buildvertex2element = true;
void MeshTopology :: EnableTableStatic (string name, bool set)
{
@ -82,9 +84,11 @@ namespace netgen
static_buildedges = set;
else if (name == "faces")
static_buildfaces = set;
else if (name == "vertex2element")
static_buildvertex2element = set;
else
throw Exception ("noting known about table "+name +"\n"
"knwon are 'edges', 'faces'");
"knwon are 'edges', 'faces', 'vertex2element'");
}

View File

@ -43,12 +43,12 @@ struct T_FACE
class MeshTopology
{
const Mesh * mesh;
bool buildvertex2element = true;
bool buildvertex2element;
bool buildedges;
bool buildfaces;
bool build_parent_edges = false; // may be changed to default = false
bool build_parent_faces = false; // may be changed to default = false
static bool static_buildedges, static_buildfaces;
static bool static_buildedges, static_buildfaces, static_buildvertex2element;
NgArray<INDEX_2> edge2vert;
NgArray<INDEX_4> face2vert;