2020-03-09 05:59:51 +01:00
|
|
|
/*
|
|
|
|
MDAL - Mesh Data Abstraction Library (MIT License)
|
|
|
|
Copyright (C) 2020 Peter Petrik (zilolv at gmail dot com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MDAL_TIN_HPP
|
|
|
|
#define MDAL_TIN_HPP
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "mdal_data_model.hpp"
|
|
|
|
#include "mdal_memory_data_model.hpp"
|
|
|
|
#include "mdal.h"
|
|
|
|
#include "mdal_driver.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#define MAX_VERTICES_PER_FACE_TIN 3
|
|
|
|
|
|
|
|
namespace MDAL
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* TIN format specification https://www.xmswiki.com/wiki/TIN_Files
|
|
|
|
*/
|
|
|
|
class DriverXmsTin: public Driver
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DriverXmsTin();
|
|
|
|
~DriverXmsTin() override;
|
|
|
|
DriverXmsTin *create() override;
|
|
|
|
|
|
|
|
int faceVerticesMaximumCount() const override;
|
|
|
|
|
|
|
|
bool canReadMesh( const std::string &uri ) override;
|
2020-04-14 02:17:15 -04:00
|
|
|
std::unique_ptr< Mesh > load( const std::string &meshFile, const std::string &meshName = "" ) override;
|
2020-03-09 05:59:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace MDAL
|
|
|
|
#endif //MDAL_TIN_HPP
|