Loading...
Searching...
No Matches
Mesh_medit.h
1/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
2 * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
3 * Author(s): Siargey Kachanovich
4 *
5 * Copyright (C) 2019 Inria
6 *
7 * Modification(s):
8 * - YYYY/MM Author: Description of the modification
9 */
10
11#ifndef IO_MESH_MEDIT_H_
12#define IO_MESH_MEDIT_H_
13
14#include <Eigen/Dense>
15
16#include <vector>
17#include <utility> // for std::pair
18
19namespace Gudhi {
20
21namespace coxeter_triangulation {
22
29struct Mesh_medit {
31 typedef std::vector<Eigen::VectorXd> Vertex_points;
36 typedef std::pair<std::vector<std::size_t>, std::size_t> Mesh_element;
38 typedef std::vector<Mesh_element> Mesh_elements;
40 typedef std::vector<double> Scalar_field_range;
41
54};
55
56} // namespace coxeter_triangulation
57
58} // namespace Gudhi
59
60#endif
Structure to store a mesh that can be output in Medit .mesh file format using the output_meshes_to_me...
Definition: Mesh_medit.h:29
std::vector< Eigen::VectorXd > Vertex_points
Type of a range of vertices.
Definition: Mesh_medit.h:31
Vertex_points vertex_points
Range of vertices of type Eigen::VectorXd to output.
Definition: Mesh_medit.h:43
std::vector< double > Scalar_field_range
Type of a range of scalar field .
Definition: Mesh_medit.h:40
Mesh_elements tetrahedra
Range of tetrahedra.
Definition: Mesh_medit.h:49
Scalar_field_range tetrahedra_scalar_range
Range of scalar values over tetrahedra.
Definition: Mesh_medit.h:53
Mesh_elements triangles
Range of triangles.
Definition: Mesh_medit.h:47
std::pair< std::vector< std::size_t >, std::size_t > Mesh_element
Type of a mesh element. A pair consisting of a vector of vertex indices of type std::size_t and of an...
Definition: Mesh_medit.h:36
Mesh_elements edges
Range of edges.
Definition: Mesh_medit.h:45
std::vector< Mesh_element > Mesh_elements
Type of a range of mesh elements.
Definition: Mesh_medit.h:38
Scalar_field_range triangles_scalar_range
Range of scalar values over triangles.
Definition: Mesh_medit.h:51