OGS
TINInterface.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <string>
7#include <vector>
8
9#include "GeoLib/Point.h"
10#include "GeoLib/PointVec.h"
11
12namespace GeoLib
13{
14class Surface;
15
16namespace IO
17{
18
23{
24public:
33 static GeoLib::Surface* readTIN(std::string const& fname,
34 GeoLib::PointVec &pnt_vec,
35 std::vector<std::string>* errors = nullptr);
36
42 static void writeSurfaceAsTIN(GeoLib::Surface const& surface, std::string const& file_name);
43};
44
45} // end namespace IO
46} // end namespace GeoLib
static GeoLib::Surface * readTIN(std::string const &fname, GeoLib::PointVec &pnt_vec, std::vector< std::string > *errors=nullptr)
static void writeSurfaceAsTIN(GeoLib::Surface const &surface, std::string const &file_name)
This class manages pointers to Points in a std::vector along with a name. It also handles the deletio...
Definition PointVec.h:25
A Surface is represented by Triangles. It consists of a reference to a vector of (pointers to) points...