Изменение индексов граничных условий
Оптимизация кода
This commit is contained in:
36
src/Mesh.cpp
36
src/Mesh.cpp
@@ -1,8 +1,4 @@
|
||||
#include "Mesh.hpp"
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <Object.hpp>
|
||||
|
||||
Mesh::Mesh(Object& _obj, double _step) : obj(_obj), step(_step) {
|
||||
for (double y = 0.0; y <= _obj.Height(); y += _step) {
|
||||
mesh.push_back(std::vector<Node*>());
|
||||
@@ -147,34 +143,4 @@ Mesh::~Mesh() {
|
||||
for (auto line : mesh)
|
||||
for (auto node : line)
|
||||
delete node;
|
||||
}
|
||||
|
||||
//void Mesh::ShowLinks() {
|
||||
// for (auto line : mesh) {
|
||||
// for (auto node : line) {
|
||||
// if (node->d())
|
||||
// std::cout << "| ";
|
||||
// }
|
||||
// std::cout << '\n';
|
||||
// for (auto node : line) {
|
||||
// if (node->l()) {
|
||||
// std::cout << '-';
|
||||
// }
|
||||
// std::cout << 'N';
|
||||
// if (node->r()) {
|
||||
// std::cout << '-';
|
||||
// }
|
||||
// else {
|
||||
// std::cout << '\n';
|
||||
// }
|
||||
// }
|
||||
// for (auto node : line) {
|
||||
// if (node->u())
|
||||
// std::cout << "|";
|
||||
// std::cout << " ";
|
||||
//
|
||||
// }
|
||||
// std::cout << '\n';
|
||||
// }
|
||||
//}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user