mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
another optional table in Topology
This commit is contained in:
parent
971d6bb465
commit
b65d3c188f
@ -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'");
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user