Volume Cartographer
2.27.0
vc
core
types
SimpleMesh.hpp
Go to the documentation of this file.
1
#pragma once
2
13
#include <cstdint>
14
#include <iostream>
15
16
namespace
volcart
17
{
19
struct
SimpleMesh
{
21
struct
Vertex
{
22
double
x, y, z, nx, ny, nz, s, t;
23
int
r, g, b, faceCount;
24
};
25
27
struct
Cell
{
28
std::uint64_t v1, v2, v3;
29
Cell
() =
default
;
30
Cell
(std::uint64_t p1, std::uint64_t p2, std::uint64_t p3)
31
: v1{p1}, v2{p2}, v3{p3}
32
{
33
}
34
};
35
36
std::vector<Vertex> verts;
37
std::vector<Cell> faces;
38
};
39
40
}
// namespace volcart
volcart
Volume Cartographer library
volcart::SimpleMesh::Cell
Definition:
SimpleMesh.hpp:27
volcart::SimpleMesh::Vertex
Definition:
SimpleMesh.hpp:21
volcart::SimpleMesh
Definition:
SimpleMesh.hpp:19
Generated by
1.9.4