Class OBJLoader

Class Documentation

class OBJLoader

Read for OBJ files.

Public Types

using Vec3f = std::array<float, 3>
using Vec2f = std::array<float, 2>

Public Static Functions

static inline void loadObj(const std::string &filename, std::vector<Vec3f> *x, std::vector<MeshFaceIndices> *faces, std::vector<Vec3f> *normals, std::vector<Vec2f> *texcoords, const Vec3f &scale)

This function loads an OBJ file. Only triangulated meshes are supported.