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

Contains definitions for the Geometry namespace. More...

#include <vector>
#include <string>
#include "meshinfo.h"
+ Include dependency graph for objloader.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HF::Geometry::tinyobj_attr< T >
 
struct  HF::Geometry::tinyobj_shape< T >
 
struct  HF::Geometry::tinyobj_material
 
struct  HF::Geometry::tinyobj_geometry< T >
 

Namespaces

namespace  Eigen
 Eigen a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
 
namespace  HF
 Perform human scale analysis on 3D environments.
 
namespace  HF::nanoGeom
 
namespace  HF::Geometry
 Manipulate and load geometry from disk.
 

Macros

#define OBJLOADER_H
 

Enumerations

enum  HF::Geometry::GROUP_METHOD { HF::Geometry::ONLY_FILE = 0 , HF::Geometry::BY_GROUP = 1 , HF::Geometry::BY_MATERIAL = 2 , HF::Geometry::MATERIAL_AND_FILE = 3 }
 Method of grouping submeshes in OBJ files. More...
 

Functions

bool HF::nanoGeom::LoadObj (Mesh &mesh, const char *filename)
 
tinyobj_geometry< doubleHF::Geometry::LoadMeshesFromTinyOBJ (std::string path)
 
template<typename T >
HF::Geometry::MeshInfo< T > HF::Geometry::LoadTMPMeshObjects (const 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< 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...
 
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...
 

Detailed Description

Contains definitions for the Geometry namespace.

Author
TBA
Date
16 Jun 2020

Definition in file objloader.h.


Class Documentation

◆ HF::Geometry::tinyobj_attr

struct HF::Geometry::tinyobj_attr
template<typename T>
struct HF::Geometry::tinyobj_attr< T >

Definition at line 72 of file objloader.h.

+ Collaboration diagram for HF::Geometry::tinyobj_attr< T >:
Class Members
vector< T > vertices

◆ HF::Geometry::tinyobj_shape

struct HF::Geometry::tinyobj_shape
template<typename T>
struct HF::Geometry::tinyobj_shape< T >

Definition at line 78 of file objloader.h.

+ Collaboration diagram for HF::Geometry::tinyobj_shape< T >:
Class Members
vector< int > indices
vector< int > mat_ids
string name

◆ HF::Geometry::tinyobj_material

struct HF::Geometry::tinyobj_material

Definition at line 84 of file objloader.h.

+ Collaboration diagram for HF::Geometry::tinyobj_material:
Class Members
string name

◆ HF::Geometry::tinyobj_geometry

struct HF::Geometry::tinyobj_geometry
template<typename T>
struct HF::Geometry::tinyobj_geometry< T >

Definition at line 89 of file objloader.h.

+ Collaboration diagram for HF::Geometry::tinyobj_geometry< T >:
Class Members
tinyobj_attr< T > attributes
vector< tinyobj_material > materials
vector< tinyobj_shape< T > > shapes

Macro Definition Documentation

◆ OBJLOADER_H

#define OBJLOADER_H

Definition at line 10 of file objloader.h.