Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
MeshUtils.hpp
Go to the documentation of this file.
1/**************************************************************************
2 * EngineSquared v0.2.0
3 *
4 * EngineSquared is a software package, part of the Engine² organization.
5 *
6 * This file is part of the EngineSquared project that is under MIT License.
7 * Copyright © 2024-present by @EngineSquared, All rights reserved.
8 *
9 * EngineSquared is a free software: you can redistribute it and/or modify
10 * it under the terms of the MIT License. See the project's LICENSE file for
11 * the full license text and details.
12 *
13 * @file MeshUtils.hpp
14 * @brief Utility functions for mesh manipulation.
15 *
16 * @author @EngineSquared
17 * @version 0.2.0
18 * @date 2026-01-15
19 **************************************************************************/
20
21#pragma once
22
23#include "component/Mesh.hpp"
24
25namespace Object::Utils {
26
51void RecalculateNormals(Component::Mesh &mesh);
52
63[[nodiscard]] bool ValidateMeshArraySizes(const Component::Mesh &mesh);
64
65} // namespace Object::Utils
Definition BoxGenerator.cpp:4
void RecalculateNormals(Component::Mesh &mesh)
Recalculate normals for a mesh based on face geometry.
Definition MeshUtils.cpp:41
bool ValidateMeshArraySizes(const Component::Mesh &mesh)
Validate mesh data integrity.
Definition MeshUtils.cpp:110