34 lines
617 B
C++
34 lines
617 B
C++
#ifndef MIMAPR_MESH_H
|
|
#define MIMAPR_MESH_H
|
|
|
|
#include "Object.hpp"
|
|
#include "Node.hpp"
|
|
#include <vector>
|
|
#include <iostream>
|
|
#include <fstream>
|
|
|
|
class Mesh{
|
|
std::vector<std::vector<Node*>> mesh;
|
|
std::vector<Node*> hlines;
|
|
std::vector<Node*> vlines;
|
|
Object& obj;
|
|
double step;
|
|
void LinkX();
|
|
void LinkY();
|
|
void Delnode(int, int);
|
|
void Adapt();
|
|
|
|
public:
|
|
Mesh(Object&, double);
|
|
~Mesh();
|
|
//void ShowLinks();
|
|
void VisualizeMesh(std::string);
|
|
|
|
std::vector<std::vector<Node*>>& Nodes() { return mesh; }
|
|
std::vector<Node*>& LineX() { return hlines; }
|
|
std::vector<Node*>& LineY() { return vlines; }
|
|
};
|
|
|
|
#endif
|
|
|