DHART
Loading...
Searching...
No Matches
objloader.cpp File Reference

Contains implementation for the Geometry namespace. More...

#include <objloader.h>
#include <Dense>
#include <meshinfo.h>
#include <tiny_obj_loader.h>
#include <robin_hood.h>
#include <HFExceptions.h>
#include <iostream>
#include <vector>
#include <filesystem>
+ Include dependency graph for objloader.cpp:

Go to the source code of this file.

Namespaces

namespace  HF
 Perform human scale analysis on 3D environments.
 
namespace  HF::nanoGeom
 
namespace  HF::Geometry
 Manipulate and load geometry from disk.
 

Macros

#define TINYOBJLOADER_IMPLEMENTATION
 This MUST be defined before importing tiny_obj_loader.h. More...
 
#define TINYOBJLOADER_USE_DOUBLE
 

Functions

bool HF::nanoGeom::LoadObj (Mesh &mesh, const char *filename)
 
tinyobj::ObjReader HF::Geometry::CreateReader (const std::string &path)
 
template<typename T >
tinyobj_shape< T > HF::Geometry::MakeShape (const tinyobj::shape_t &shape)
 
template<typename T >
vector< tinyobj_shape< T > > HF::Geometry::MakeShapes (const vector< tinyobj::shape_t > &shapes)
 
vector< tinyobj_material > HF::Geometry::MakeMaterials (const vector< tinyobj::material_t > &materials)
 
tinyobj_geometry< doubleHF::Geometry::LoadMeshesFromTinyOBJ (std::string path)
 
vector< MeshInfo< float > > HF::Geometry::LoadMeshObjects (std::string path, GROUP_METHOD gm=ONLY_FILE, bool change_coords=false, int scale=1)
 Create MeshInfo instances from the OBJ at path. More...
 
vector< array< float, 3 > > HF::Geometry::LoadRawVertices (std::string path)
 Load a list of vertices directly from an OBJ file. More...
 
std::string HF::Geometry::GetTestOBJPath (std::string key)
 Get the path to the OBJ with the given key. More...
 
vector< MeshInfo< float > > HF::Geometry::LoadMeshObjects (std::vector< std::string > &path, GROUP_METHOD gm=ONLY_FILE, bool change_coords=false, int scale=1)
 Create MeshInfo instances from the OBJ files in path. More...
 

Variables

static robin_hood::unordered_map< string, string > HF::Geometry::test_model_paths
 

Detailed Description

Contains implementation for the Geometry namespace.

Author
TBA
Date
16 Jun 2020

Definition in file objloader.cpp.

Macro Definition Documentation

◆ TINYOBJLOADER_IMPLEMENTATION

#define TINYOBJLOADER_IMPLEMENTATION

This MUST be defined before importing tiny_obj_loader.h.

Definition at line 11 of file objloader.cpp.

◆ TINYOBJLOADER_USE_DOUBLE

#define TINYOBJLOADER_USE_DOUBLE

Definition at line 12 of file objloader.cpp.