Artec 3D Scanning SDK  2.0
List of all members
artec::sdk::base::io::Obj Class Reference

Class to save/load OBJ files. More...

#include <artec/sdk/base/io/ObjIO.h>

Static Public Member Functions

static ErrorCode save (const wchar_t *path, const IFrameMesh *mesh, IProgressInfo *progr=0, ICancellationToken *cncl=0, bool saveNormals=true, bool saveTexCoords=true, const wchar_t *imageFormat=L"png")
 Save IFrameMesh/ICompositeMesh to OBJ file. More...
 
static ErrorCode save (const wchar_t *path, const ICompositeMesh *mesh, IProgressInfo *progr=0, ICancellationToken *cncl=0, bool saveNormals=true, bool saveTexCoords=true, const wchar_t *imageFormat=L"png")
 Save IFrameMesh/ICompositeMesh to OBJ file. More...
 
static ErrorCode save (IBlob **data, const IFrameMesh *mesh, IProgressInfo *progr=0, ICancellationToken *cncl=0, bool saveNormals=true, bool saveTexCoords=true, const wchar_t *materialFilename=NULL)
 Save IFrameMesh/ICompositeMesh to OBJ blob. More...
 
static ErrorCode save (IBlob **data, const ICompositeMesh *mesh, IProgressInfo *progr=0, ICancellationToken *cncl=0, bool saveNormals=true, bool saveTexCoords=true, const wchar_t *materialFilename=NULL)
 Save IFrameMesh/ICompositeMesh to OBJ blob. More...
 
static ErrorCode load (IFrameMesh **mesh, const wchar_t *path, IProgressInfo *progr=0, ICancellationToken *cncl=0)
 Load IFrameMesh/ICompositeMesh from OBJ file. More...
 
static ErrorCode load (ICompositeMesh **mesh, const wchar_t *path, IProgressInfo *progr=0, ICancellationToken *cncl=0)
 Load IFrameMesh/ICompositeMesh from OBJ file. More...
 
static ErrorCode load (IFrameMesh **mesh, const IBlob *data, IProgressInfo *progr=0, ICancellationToken *cncl=0)
 Load IFrameMesh/ICompositeMesh from OBJ blob. More...
 
static ErrorCode load (ICompositeMesh **mesh, const IBlob *data, IProgressInfo *progr=0, ICancellationToken *cncl=0)
 Load IFrameMesh/ICompositeMesh from OBJ blob. More...
 

Detailed Description

Class to save/load OBJ files.

Definition at line 94 of file ObjIO.h.

Member Function Documentation

static ErrorCode artec::sdk::base::io::Obj::load ( IFrameMesh **  mesh,
const wchar_t *  path,
IProgressInfo progr = 0,
ICancellationToken cncl = 0 
)
inlinestatic

Load IFrameMesh/ICompositeMesh from OBJ file.

Parameters
mesh- loaded mesh
path- file path to load image from
progr- progress interface
cncl- cancellation interface

Definition at line 155 of file ObjIO.h.

static ErrorCode artec::sdk::base::io::Obj::load ( ICompositeMesh **  mesh,
const wchar_t *  path,
IProgressInfo progr = 0,
ICancellationToken cncl = 0 
)
inlinestatic

Load IFrameMesh/ICompositeMesh from OBJ file.

Parameters
mesh- loaded mesh
path- file path to load image from
progr- progress interface
cncl- cancellation interface

Definition at line 160 of file ObjIO.h.

static ErrorCode artec::sdk::base::io::Obj::load ( IFrameMesh **  mesh,
const IBlob data,
IProgressInfo progr = 0,
ICancellationToken cncl = 0 
)
inlinestatic

Load IFrameMesh/ICompositeMesh from OBJ blob.

Note
Loads only geometry without texture (image is stored in a separate blob)
Parameters
mesh- loaded mesh
data- blob to load image from
progr- progress interface
cncl- cancellation interface

Definition at line 174 of file ObjIO.h.

static ErrorCode artec::sdk::base::io::Obj::load ( ICompositeMesh **  mesh,
const IBlob data,
IProgressInfo progr = 0,
ICancellationToken cncl = 0 
)
inlinestatic

Load IFrameMesh/ICompositeMesh from OBJ blob.

Note
Loads only geometry without texture (image is stored in a separate blob)
Parameters
mesh- loaded mesh
data- blob to load image from
progr- progress interface
cncl- cancellation interface

Definition at line 179 of file ObjIO.h.

static ErrorCode artec::sdk::base::io::Obj::save ( const wchar_t *  path,
const IFrameMesh mesh,
IProgressInfo progr = 0,
ICancellationToken cncl = 0,
bool  saveNormals = true,
bool  saveTexCoords = true,
const wchar_t *  imageFormat = L"png" 
)
inlinestatic

Save IFrameMesh/ICompositeMesh to OBJ file.

Parameters
path- file path where to save mesh
mesh- mesh to save
progr- progress interface
cncl- cancellation interface
saveNormals- save normals to file
saveTexCoords- save texture coordinates
imageFormat- texture image format if applicable ("png","jpg","bmp")
Note
If you set the saveTexCoords flag, then texture images will also be saved.

Definition at line 109 of file ObjIO.h.

static ErrorCode artec::sdk::base::io::Obj::save ( const wchar_t *  path,
const ICompositeMesh mesh,
IProgressInfo progr = 0,
ICancellationToken cncl = 0,
bool  saveNormals = true,
bool  saveTexCoords = true,
const wchar_t *  imageFormat = L"png" 
)
inlinestatic

Save IFrameMesh/ICompositeMesh to OBJ file.

Parameters
path- file path where to save mesh
mesh- mesh to save
progr- progress interface
cncl- cancellation interface
saveNormals- save normals to file
saveTexCoords- save texture coordinates
imageFormat- texture image format if applicable ("png","jpg","bmp")
Note
If you set the saveTexCoords flag, then texture images will also be saved.

Definition at line 116 of file ObjIO.h.

static ErrorCode artec::sdk::base::io::Obj::save ( IBlob **  data,
const IFrameMesh mesh,
IProgressInfo progr = 0,
ICancellationToken cncl = 0,
bool  saveNormals = true,
bool  saveTexCoords = true,
const wchar_t *  materialFilename = NULL 
)
inlinestatic

Save IFrameMesh/ICompositeMesh to OBJ blob.

Note
Saves only geometry without texture and material (material and images are stored in a separate blob)
Parameters
data- blob where to save mesh
mesh- mesh to save
progr- progress interface
cncl- cancellation interface
saveNormals- save normals to file
saveTexCoords- save texture coordinates

Definition at line 134 of file ObjIO.h.

static ErrorCode artec::sdk::base::io::Obj::save ( IBlob **  data,
const ICompositeMesh mesh,
IProgressInfo progr = 0,
ICancellationToken cncl = 0,
bool  saveNormals = true,
bool  saveTexCoords = true,
const wchar_t *  materialFilename = NULL 
)
inlinestatic

Save IFrameMesh/ICompositeMesh to OBJ blob.

Note
Saves only geometry without texture and material (material and images are stored in a separate blob)
Parameters
data- blob where to save mesh
mesh- mesh to save
progr- progress interface
cncl- cancellation interface
saveNormals- save normals to file
saveTexCoords- save texture coordinates

Definition at line 141 of file ObjIO.h.


The documentation for this class was generated from the following file: