ug4
file_io_obj.cpp File Reference
#include <fstream>
#include <vector>
#include <cstring>
#include <string>
#include "file_io_obj.h"
#include "../lg_base.h"
#include "common/util/loader/loader_obj.h"
#include "common/error.h"

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...
 
static void ug::WriteEdges (ofstream &out, EdgeIterator edgesBegin, EdgeIterator edgesEnd, int indexDimension, Grid::VertexAttachmentAccessor< AInt > &aaInt)
 
static void ug::WriteFaces (ofstream &out, FaceIterator facesBegin, FaceIterator facesEnd, int indexDimension, Grid::VertexAttachmentAccessor< AInt > &aaInt)