|
|
@ -1,7 +1,8 @@
|
|
|
|
#include "recastmesh.hpp"
|
|
|
|
#include "recastmesh.hpp"
|
|
|
|
#include "chunkytrimesh.hpp"
|
|
|
|
|
|
|
|
#include "settings.hpp"
|
|
|
|
#include "settings.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <Recast.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
|
|
|
{
|
|
|
|
RecastMesh::RecastMesh(std::vector<int> indices, std::vector<float> vertices, const Settings& settings)
|
|
|
|
RecastMesh::RecastMesh(std::vector<int> indices, std::vector<float> vertices, const Settings& settings)
|
|
|
@ -9,5 +10,6 @@ namespace DetourNavigator
|
|
|
|
, mVertices(std::move(vertices))
|
|
|
|
, mVertices(std::move(vertices))
|
|
|
|
, mChunkyTriMesh(mVertices, mIndices, settings.mTrianglesPerChunk)
|
|
|
|
, mChunkyTriMesh(mVertices, mIndices, settings.mTrianglesPerChunk)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
rcCalcBounds(mVertices.data(), static_cast<int>(getVerticesCount()), mBoundsMin.ptr(), mBoundsMax.ptr());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|