Fix edges after building boundary layer

This commit is contained in:
Matthias Hochsteger 2021-06-29 17:50:45 +02:00
parent d20a297cf1
commit 1c526a5c9e
2 changed files with 4 additions and 0 deletions

View File

@ -627,6 +627,8 @@ namespace netgen
else
mesh.GetFaceDescriptor(i).SetDomainIn(new_mat_nr);
}
mesh.GetTopology().ClearEdges();
mesh.UpdateTopology();
}
void AddDirection( Vec<3> & a, Vec<3> b )

View File

@ -193,6 +193,8 @@ public:
void GetSegmentVolumeElements ( int segnr, NgArray<ElementIndex> & els ) const;
void GetSegmentSurfaceElements ( int segnr, NgArray<SurfaceElementIndex> & els ) const;
// Call this before Update() to discard old edges
void ClearEdges() { edge2vert.SetSize(0); }
private:
Array<std::tuple<int, std::array<int,3>>> parent_edges;