MDAL
mdal_xms_tin.hpp
1 /*
2  MDAL - Mesh Data Abstraction Library (MIT License)
3  Copyright (C) 2020 Peter Petrik (zilolv at gmail dot com)
4 */
5 
6 #ifndef MDAL_TIN_HPP
7 #define MDAL_TIN_HPP
8 
9 #include <string>
10 #include <memory>
11 
12 #include "mdal_data_model.hpp"
13 #include "mdal_memory_data_model.hpp"
14 #include "mdal.h"
15 #include "mdal_driver.hpp"
16 
17 
18 #define MAX_VERTICES_PER_FACE_TIN 3
19 
20 namespace MDAL
21 {
25  class DriverXmsTin: public Driver
26  {
27  public:
28  DriverXmsTin();
29  ~DriverXmsTin() override;
30  DriverXmsTin *create() override;
31 
32  int faceVerticesMaximumCount() const override;
33 
34  bool canReadMesh( const std::string &uri ) override;
35  std::unique_ptr< Mesh > load( const std::string &meshFile, const std::string &meshName = "" ) override;
36  };
37 
38 } // namespace MDAL
39 #endif //MDAL_TIN_HPP
TIN format specification https://www.xmswiki.com/wiki/TIN_Files.
Definition: mdal_xms_tin.hpp:26
int faceVerticesMaximumCount() const override
returns the maximum vertices per face
Definition: mdal_xms_tin.cpp:39
Definition: mdal_driver.hpp:28