Pathfinder
BuildGraph.h
Go to the documentation of this file.
1 
10 #ifndef BUILDGRAPH_H
11 #define BUILDGRAPH_H
12 
13 #include <MinSG/Core/Nodes/ListNode.h>
14 
15 #include <boost/graph/adjacency_list.hpp>
16 
17 #include "Using.h"
18 #include "MeshAccessor.h"
19 
20 namespace Pathfinder {
21 
33  std::vector<MinSG::GeometryNode*>
35  const MinSG::ListNode& root
36  );
37 
38 
48  std::vector<MeshAccessor*>
50  const std::vector<MinSG::GeometryNode*>& nodes
51  );
52 
53 
67  short
69  const Geometry::Vec3& v,
70  const Geometry::Vec3& w
71  );
72 
73 
89  std::vector<Graph*>
91  const std::vector<MinSG::GeometryNode*>& nodes,
92  const std::vector<MeshAccessor*>& meshAccessors
93  );
94 
95 }
96 
97 #endif
This file declares the struct MeshAccessor that presents a convenient way to access meshes...
std::vector< Graph * > buildGraphList(const std::vector< MinSG::GeometryNode *> &nodes, const std::vector< MeshAccessor *> &meshAccessors)
Build a graph for every mesh of a scene graph.
Definition: BuildGraph.cpp:108
Definition: AABB.cpp:21
std::vector< MinSG::GeometryNode * > extractGeometryNodes(const MinSG::ListNode &root)
Build a list of all GeometryNodes in the scene graph.
Definition: BuildGraph.cpp:28
short determineDrivability(const Geometry::Vec3 &v, const Geometry::Vec3 &w)
Determine which agent is able to traverse the direct connection between the two points.
Definition: BuildGraph.cpp:75
std::vector< MeshAccessor * > createMeshAccessors(const std::vector< MinSG::GeometryNode *> &nodes)
Create MeshAccessor objects for the given GeometryNodes.
Definition: BuildGraph.cpp:63
This file provides using and enum declarations.