artec::sdk::base::io::Obj Class Reference

#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")
 
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")
 
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)
 
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)
 
static ErrorCode load (IFrameMesh **mesh, const wchar_t *path, IProgressInfo *progr=0, ICancellationToken *cncl=0)
 
static ErrorCode load (ICompositeMesh **mesh, const wchar_t *path, IProgressInfo *progr=0, ICancellationToken *cncl=0)
 
static ErrorCode load (IFrameMesh **mesh, const IBlob *data, IProgressInfo *progr=0, ICancellationToken *cncl=0)
 
static ErrorCode load (ICompositeMesh **mesh, const IBlob *data, IProgressInfo *progr=0, ICancellationToken *cncl=0)
 

Detailed Description

Definition at line 98 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- cancel interface
Returns
error code

Definition at line 162 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- cancel interface
Returns
error code

Definition at line 167 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
load only geometry, not texture also, because image is stored in separate blob
Parameters
mesh- loaded mesh
data- blob to load image from
progr- progress interface
cncl- cancel interface
Returns
error code

Definition at line 182 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
load only geometry, not texture also, because image is stored in separate blob
Parameters
mesh- loaded mesh
data- blob to load image from
progr- progress interface
cncl- cancel interface
Returns
error code

Definition at line 187 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 to save mesh to
mesh- mesh to be saved
progr- progress interface
cncl- cancel interface
saveNormals- if we need to save normals in file
saveTexCoords- if texture coordinates should be saved
imageFormat- format for texture images if they should be saved ("png","jpg","bmp")
Returns
error code
Note
if you set saveTexCoords flag then texture images will also be saved

Definition at line 114 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 to save mesh to
mesh- mesh to be saved
progr- progress interface
cncl- cancel interface
saveNormals- if we need to save normals in file
saveTexCoords- if texture coordinates should be saved
imageFormat- format for texture images if they should be saved ("png","jpg","bmp")
Returns
error code
Note
if you set saveTexCoords flag then texture images will also be saved

Definition at line 121 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
save only geometry, not texture and material also, because material and images is stored in separate blob
Parameters
data- blob to save mesh to
mesh- mesh to be saved
progr- progress interface
cncl- cancel interface
saveNormals- if we need to save normals in file
saveTexCoords- if texture coordinates should be saved
Returns
error code

Definition at line 140 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
save only geometry, not texture and material also, because material and images is stored in separate blob
Parameters
data- blob to save mesh to
mesh- mesh to be saved
progr- progress interface
cncl- cancel interface
saveNormals- if we need to save normals in file
saveTexCoords- if texture coordinates should be saved
Returns
error code

Definition at line 147 of file ObjIO.h.


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