Pathfinder
OBJ.h
Go to the documentation of this file.
1 
9 #ifndef OBJ_H
10 #define OBJ_H
11 
12 #include "Using.h"
13 #include "MeshAccessor.h"
14 
15 namespace Pathfinder {
16 
28  std::tuple<size_t, size_t, size_t>
30  const std::list<Geometry::Vec3>& vertices,
31  const Geometry::Vec3& a,
32  const Geometry::Vec3& b,
33  const Geometry::Vec3& c
34  );
35 
36 
44  void
46  const MinSG::GeometryNode* geoNodePtr,
47  const std::string& path
48  );
49 
50 
57  void
59  const Graph* graph,
60  const std::string& path
61  );
62 
63 
72  void
74  const std::vector<Geometry::Vec3>& points,
75  const std::string& path
76  );
77 
78 
87  void
89  const std::vector<std::tuple<Graph*, Graph*, std::vector<Geometry::Vec3>>>&
90  intersections,
91  const std::string& path
92  );
93 
94 }
95 
96 #endif
This file declares the struct MeshAccessor that presents a convenient way to access meshes...
void writeOBJFromMesh(const MinSG::GeometryNode *geoNodePtr, const std::string &path)
Go through the mesh associated with geoNodePtr and print the appropriate OBJ commands.
Definition: OBJ.cpp:53
void writeIntersectionOBJFiles(const std::vector< std::tuple< Graph *, Graph *, std::vector< Geometry::Vec3 >> > &intersections, const std::string &path)
Definition: OBJ.cpp:319
void writeOBJFromGraph(const Graph *graph, const std::string &path)
Go through graph and output appropriate OBJ commands.
Definition: OBJ.cpp:127
Definition: AABB.cpp:21
boost::adjacency_list< boost::vecS, boost::vecS, boost::undirectedS, GraphVertex, GraphEdge > Graph
Shorthand notation for the graph used.
Definition: Using.h:42
void appendPointcloudOBJFile(const std::vector< Geometry::Vec3 > &points, const std::string &path)
Given a list of points, append all of these points onto the file at location path.
Definition: OBJ.cpp:302
std::tuple< size_t, size_t, size_t > getOBJIndices(const std::list< Geometry::Vec3 > &vertices, const Geometry::Vec3 &a, const Geometry::Vec3 &b, const Geometry::Vec3 &c)
Given three points, get their names for an OBJ file.
Definition: OBJ.cpp:28
This file provides using and enum declarations.