mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
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.
32 lines
459 B
C++
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
|
|
|