ug4
file_io_obj.h File Reference
#include <string>
#include <vector>
#include "common/math/ugmath.h"
#include "../grid/grid.h"
#include "../common_attachments.h"
#include "../subset_handler.h"

Go to the source code of this file.

Classes

struct  ug::OBJMaterial
 holds information about the materials in the obj-file. More...
 

Namespaces

 ug
 the ug namespace
 

Functions

bool ug::LoadGridFromOBJ (Grid &grid, const char *filename, AVector3 &aPos, AVector2 *paTexCoord, ISubsetHandler *pSubsetHandler, std::vector< OBJMaterial > *pvMaterials)
 Loads a file from a wavefront '.obj' file. Fills optional subset-infos. More...
 
bool ug::SaveGridToOBJ (Grid &grid, const char *filename, AVector3 &aPos=aPosition, AVector2 *paTexCoord=NULL, ISubsetHandler *pSubsetHandler=NULL, std::vector< OBJMaterial > *pvMaterials=NULL)
 Saves a file from a wavefront '.obj' file. Writes optional subset-infos. More...