QGIS/external/mdal/mdal_defines.hpp
Peter Petrik 50422a1165 [FEATURE] QgsMeshLayer part 1: Reading raw mesh
Introducting MDAL, QgsMeshLayer, mesh data providers (mesh_memory, mdal)
to read and visualize raw meshes: vertices and faces. Support dragging
2dm files from browser on canvas to visualize 2dm meshes.
Support for QgsMeshLayer in Python API.
2018-04-19 10:50:33 +02:00

32 lines
459 B
C++

/*
MDAL - Mesh Data Abstraction Library (MIT License)
Copyright (C) 2018 Peter Petrik (zilolv at gmail dot com)
*/
#ifndef MDAL_DEFINES_HPP
#define MDAL_DEFINES_HPP
#include <stddef.h>
#include <vector>
namespace MDAL
{
typedef struct
{
double x;
double y;
} Vertex;
typedef std::vector<size_t> Face;
struct Mesh
{
std::vector<Vertex> vertices;
std::vector<Face> faces;
};
} // namespace MDAL
#endif //MDAL_DEFINES_HPP