1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00
OpenMW/components/detournavigator/recastmesh.hpp
2018-10-13 22:16:25 +03:00

51 lines
1.0 KiB
C++

#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_RECASTMESH_H
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_RECASTMESH_H
#include "chunkytrimesh.hpp"
#include <memory>
#include <vector>
namespace DetourNavigator
{
struct Settings;
class RecastMesh
{
public:
RecastMesh(std::vector<int> indices, std::vector<float> vertices, const Settings& settings);
const std::vector<int>& getIndices() const
{
return mIndices;
}
const std::vector<float>& getVertices() const
{
return mVertices;
}
std::size_t getVerticesCount() const
{
return mVertices.size() / 3;
}
std::size_t getTrianglesCount() const
{
return mIndices.size() / 3;
}
const ChunkyTriMesh& getChunkyTriMesh() const
{
return mChunkyTriMesh;
}
private:
std::vector<int> mIndices;
std::vector<float> mVertices;
ChunkyTriMesh mChunkyTriMesh;
};
}
#endif