-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTINInterface.h
More file actions
53 lines (44 loc) · 1.31 KB
/
Copy pathTINInterface.h
File metadata and controls
53 lines (44 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* @copyright
* Copyright (c) 2012-2015, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#ifndef TININTERFACE_H_
#define TININTERFACE_H_
#include <string>
#include <vector>
#include "GeoLib/Point.h"
#include "GeoLib/PointVec.h"
namespace GeoLib
{
class Surface;
}
namespace FileIO
{
/**
* Interface for reading and writing Triangulated Irregular Network (TIN) file formats.
*/
class TINInterface
{
public:
/**
* Reads TIN file
* @param fname TIN file name
* @param pnt_vec a point vector to which triangle vertexes are added
* @param errors a vector of error messages
* @return a pointer to a GeoLib::Surface object created from TIN data. nullptr is returned if it fails to read the file.
*/
static GeoLib::Surface* readTIN(std::string const& fname,
GeoLib::PointVec &pnt_vec,
std::vector<std::string>* errors = nullptr);
/**
* Writes surface data into TIN file
* @param surface surface object
* @param file_name TIN file name
*/
static void writeSurfaceAsTIN(GeoLib::Surface const& surface, std::string const& file_name);
};
}
#endif /* TININTERFACE_H_ */