Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
mesh_compare.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2023 Vitaliy Lobachevskiy
4
5#pragma once
6#include <array>
7#include <vector>
8#include <irrlichttypes.h>
9#include <S3DVertex.h>
10
13using Triangle = std::array<video::S3DVertex, 3>;
14
17using Quad = std::array<video::S3DVertex, 4>;
18
24[[nodiscard]] bool checkMeshEqual(const std::vector<video::S3DVertex> &vertices, const std::vector<u16> &indices, const std::vector<Triangle> &expected);
25
32[[nodiscard]] bool checkMeshEqual(const std::vector<video::S3DVertex> &vertices, const std::vector<u16> &indices, const std::vector<Quad> &expected);
bool checkMeshEqual(const std::vector< video::S3DVertex > &vertices, const std::vector< u16 > &indices, const std::vector< Triangle > &expected)
Compare two meshes for equality.
Definition mesh_compare.cpp:47
std::array< video::S3DVertex, 4 > Quad
Represents a quad as four vertices.
Definition mesh_compare.h:17
std::array< video::S3DVertex, 3 > Triangle
Represents a triangle as three vertices.
Definition mesh_compare.h:13