11 struct Face;
struct Edge;
struct Vertex;
struct HalfEdge;
26 float highestAdminissibleRadius;
46 void build(
const std::vector<glm::vec3> &position,
const std::vector<glm::ivec3> &faces);
47 std::optional<Path>
findPath(glm::vec3 from, glm::vec3 to);
48 std::optional<LocationInCell>
getCell(glm::vec3 pos);
52 std::vector<Vertex> vertices;
53 std::vector<Face> faces;
54 std::vector<Edge> edges;
55 std::vector<HalfEdge> halfEdges;
void build(const std::vector< glm::vec3 > &position, const std::vector< glm::ivec3 > &faces)
Definition: navMesh.cpp:13
std::optional< LocationInCell > getCell(glm::vec3 pos)
Definition: navMesh.cpp:188
std::optional< Path > findPath(glm::vec3 from, glm::vec3 to)
Definition: navMesh.cpp:90
Represents a 3D triangle, equipped with some utility functions.
Definition: triangle.h:13
glm::vec3 projectedPosition
Definition: navMesh.h:36
int cell
Definition: navMesh.h:35
std::vector< int > edges
Definition: navMesh.h:43
float length
Definition: navMesh.h:40
glm::vec3 from
Definition: navMesh.h:41
glm::vec3 to
Definition: navMesh.h:42