MeshKernel
Mesh1D.hpp
1 //---- GPL ---------------------------------------------------------------------
2 //
3 // Copyright (C) Stichting Deltares, 2011-2020.
4 //
5 // This program is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation version 3.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
17 // contact: delft3d.support@deltares.nl
18 // Stichting Deltares
19 // P.O. Box 177
20 // 2600 MH Delft, The Netherlands
21 //
22 // All indications and logos of, and references to, "Delft3D" and "Deltares"
23 // are registered trademarks of Stichting Deltares, and remain the property of
24 // Stichting Deltares. All rights reserved.
25 //
26 //------------------------------------------------------------------------------
27 
28 #pragma once
29 
30 namespace meshkernelapi
31 {
33  struct Mesh1D
34  {
36  int* edge_nodes = nullptr;
38  double* node_x = nullptr;
40  double* node_y = nullptr;
42  int num_nodes;
46  int num_edges;
49  };
50 
51 } // namespace meshkernelapi
meshkernelapi::Mesh1D::edge_nodes
int * edge_nodes
The nodes composing each mesh 1d edge.
Definition: Mesh1D.hpp:36
meshkernelapi::Mesh1D::node_y
double * node_y
The y-coordinates of the mesh nodes.
Definition: Mesh1D.hpp:40
meshkernelapi::Mesh1D::num_nodes
int num_nodes
The number of 1d nodes.
Definition: Mesh1D.hpp:42
meshkernelapi::Mesh1D::num_valid_edges
int num_valid_edges
The number of valid 1d edges.
Definition: Mesh1D.hpp:48
meshkernelapi::Mesh1D::node_x
double * node_x
The x-coordinates of the mesh nodes.
Definition: Mesh1D.hpp:38
meshkernelapi::Mesh1D::num_valid_nodes
int num_valid_nodes
The number of valid 1d nodes.
Definition: Mesh1D.hpp:44
meshkernelapi::Mesh1D
A struct used to describe the values of a mesh 1d in a C-compatible manner.
Definition: Mesh1D.hpp:33
meshkernelapi::Mesh1D::num_edges
int num_edges
The number of 1d edges.
Definition: Mesh1D.hpp:46
meshkernelapi
Contains all structs and functions exposed at the API level.
Definition: BoundingBox.hpp:32