#pragma once #include "NavigationMap.h" #include #include namespace NCL { namespace CSC8503 { class NavigationMesh : public NavigationMap { public: NavigationMesh(); NavigationMesh(const std::string&filename); ~NavigationMesh(); bool FindPath(const Vector3& from, const Vector3& to, NavigationPath& outPath) override; protected: struct NavTri { NavTri* neighbours[3]; NavTri() { neighbours[0] = nullptr; neighbours[1] = nullptr; neighbours[2] = nullptr; } }; std::vector allTris; std::vector allVerts; std::vector allIndices; }; } }