added functions to get outer edges

This commit is contained in:
jakob.schratter 2026-01-24 13:41:56 +01:00
commit facc8fc890
2 changed files with 66 additions and 2 deletions

View file

@ -328,6 +328,10 @@ private:
void Write_ascii_paraview_3D(std::string const &fname, std::vector<double> const &v) const;
public:
const std::vector<int> BoundaryEdges() const;
const std::vector<int> OuterEdges() const;
/**
* Visualize @p v together with its mesh information via paraview
*
@ -546,9 +550,12 @@ public:
*/
[[nodiscard]] bool checkObtuseAngles() const;
// Every element belongs to 1 subdomain
std::vector<int> ElementSubdomains;
// Every edge has 2 adjacent subdomains
std::vector<int> EdgeSubdomains;
/**
* Reads the global triangle to subdomain mapping.
*
@ -558,6 +565,8 @@ public:
*/
[[nodiscard]] const std::vector<int> ReadElementSubdomains(std::string const &dname) const;
[[nodiscard]] const std::vector<int> ReadEdgeSubdomains(std::string const &filename) const;
/**
* Calculates the largest inner angle in element @p idx.