35 lines
688 B
C++
35 lines
688 B
C++
#include "System.hpp"
|
|
|
|
void System::export_mesh(std::string name) {
|
|
mesh.VisualizeMesh(name);
|
|
}
|
|
|
|
void System::DefineBounds(int l, int t, int r, int b) {
|
|
Node* cur = mesh.LineX().front();
|
|
while (cur) {
|
|
cur->SetB(b);
|
|
cur = cur->r();
|
|
}
|
|
cur = mesh.LineX().back();
|
|
while (cur) {
|
|
cur->SetB(t);
|
|
cur = cur->r();
|
|
}
|
|
cur = mesh.LineY().front();
|
|
while (cur) {
|
|
cur->SetB(l);
|
|
cur = cur->u();
|
|
}
|
|
cur = mesh.LineY().back();
|
|
while (cur->u()) {
|
|
cur->SetB(r);
|
|
cur = cur->u();
|
|
}
|
|
}
|
|
|
|
std::vector<std::vector<Node*>>& System::Nodes() { return mesh.Nodes(); }
|
|
std::vector<Node*>& System::LineX() { return mesh.LineX(); }
|
|
std::vector<Node*>& System::LineY() { return mesh.LineY(); }
|
|
|
|
|