GEOM
Computer Graphics Structures library
Graphs.h
1 /*
2  Copyright (C) Skeletex Research, s.r.o. - All Rights Reserved
3  Unauthorized copying of this file, via any medium is strictly prohibited
4  Proprietary and confidential
5 */
6 #ifndef GEOM_GRAPHS_H
7 #define GEOM_GRAPHS_H
8 
9 #include <vector>
10 
11 #include <glm/glm.hpp>
12 //#include <Utils/Meshes.h>
13 
14 #include <GEOM/API.h>
15 
16 namespace geom
17 {
18 
19  struct GEOM_API Graph
20  {
21  std::vector<glm::vec3> vertices;
22  std::vector<std::vector<bool>> edges;
23  };
24 
25  //GEOM_API Graph MeshToGraph(const meshes::IndexedFace &mesh);
26 
27  GEOM_API void DijkstraAlgorithm(const Graph &graph, const unsigned int start_vertex, std::vector<float> &distances, std::vector<unsigned int> &previous);
28  GEOM_API void DijkstraAlgorithm(const Graph &graph, const unsigned start_vertex, const std::vector<float> &vertex_weights, std::vector<float> &out_distances, std::vector<unsigned int> &out_previous);
29 
30  /* struct GEOM_API AdvancedGraph
31  {
32  struct Vertex
33  {
34  glm::vec3 position;
35  std::set<Vertex *> edges;
36  };
37 
38  std::vector<Vertex> vertices;
39 
40  void AddEdge(const UINT32 source, const UINT32 dest)
41  {
42  if (edges.find(vertices[source]))
43  vertices[source].edges
44  };
45  void AddSymEdge(const UINT32 vert1, const UINT32 vert2);
46  };*/
47 }
48 
49 
50 #endif /* !GEOM_GRAPHS_H */
Definition: Constructors.h:9