mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-13 17:48:34 +05:00
Fix edges after building boundary layer
This commit is contained in:
parent
d20a297cf1
commit
1c526a5c9e
@ -627,6 +627,8 @@ namespace netgen
|
|||||||
else
|
else
|
||||||
mesh.GetFaceDescriptor(i).SetDomainIn(new_mat_nr);
|
mesh.GetFaceDescriptor(i).SetDomainIn(new_mat_nr);
|
||||||
}
|
}
|
||||||
|
mesh.GetTopology().ClearEdges();
|
||||||
|
mesh.UpdateTopology();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddDirection( Vec<3> & a, Vec<3> b )
|
void AddDirection( Vec<3> & a, Vec<3> b )
|
||||||
|
@ -193,6 +193,8 @@ public:
|
|||||||
void GetSegmentVolumeElements ( int segnr, NgArray<ElementIndex> & els ) const;
|
void GetSegmentVolumeElements ( int segnr, NgArray<ElementIndex> & els ) const;
|
||||||
void GetSegmentSurfaceElements ( int segnr, NgArray<SurfaceElementIndex> & els ) const;
|
void GetSegmentSurfaceElements ( int segnr, NgArray<SurfaceElementIndex> & els ) const;
|
||||||
|
|
||||||
|
// Call this before Update() to discard old edges
|
||||||
|
void ClearEdges() { edge2vert.SetSize(0); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Array<std::tuple<int, std::array<int,3>>> parent_edges;
|
Array<std::tuple<int, std::array<int,3>>> parent_edges;
|
||||||
|
Loading…
Reference in New Issue
Block a user