Volume Cartographer 2.27.0
SimpleMesh.hpp
Go to the documentation of this file.
1#pragma once
2
13#include <cstdint>
14#include <iostream>
15
16namespace volcart
17{
19struct 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
Volume Cartographer library