Enmesh
Loading...
Searching...
No Matches
mesh.h
1#ifndef MESH_H
2#define MESH_H
3
4#include <vector>
5#include <array>
6#include <iostream>
7#include <cmath>
8#include <unordered_set>
9#include <unordered_map>
10#include <fstream>
11#include <sstream>
12#include <string>
13
14
15#include "geometry/point.h"
16#include "geometry/edge.h"
17#include "geometry/triangle.h"
18#include "geometry/quad.h"
19#include "geometry/tetrahedron.h"
20
21
22namespace Enmesh {
23
28template <typename ElementType>
29struct Mesh {
30
31 // Datas
32 std::vector<Point> vertices;
33 std::vector<ElementType> elements;
34 std::vector<float> ratios;
35};
36
37} // namespace Enmesh
38
39#endif
A class representing a 3D mesh.
Definition mesh.h:29
std::vector< float > ratios
aspect ratios of elements (for quality analysis)
Definition mesh.h:34
std::vector< Point > vertices
List of vertices in the mesh.
Definition mesh.h:32
std::vector< ElementType > elements
List of elements defined by vertex indices.
Definition mesh.h:33