Helios++
Helios software for LiDAR simulations
WavefrontObjFileLoader.h
1 #pragma once
2 
3 #include "AbstractGeometryFilter.h"
4 #include <glm/glm.hpp>
5 using namespace glm;
6 
14  std::string filePathString = "";
15 
16 public:
17  // *** CONSTRUCTION *** //
18  // ********************** //
24 
25  // *** MAIN METHODS *** //
26  // ********************* //
30  ScenePart* run();
31 
35  void loadObj(std::string const & pathString, bool yIsUp);
36 
37  // *** ASSIST METHODS *** //
38  // ************************ //
50  static void buildPrimitiveVertex(
51  Vertex &dstVert,
52  Vertex & srcVert,
53  int texIdx,
54  int normalIdx,
55  std::vector<dvec2> const & texcoords,
56  std::vector<dvec3> const & normals
57  );
58 };
OBJ file loader filter.
Definition: WavefrontObjFileLoader.h:10
WavefrontObjFileLoader()
Constructor for OBJ file loader filter.
Definition: WavefrontObjFileLoader.h:23
Class representing a scene part.
Definition: ScenePart.h:16
Abstract class defining asset loading filters common behavior.
Definition: AbstractGeometryFilter.h:18
Class representing a vertex.
Definition: Vertex.h:14