17 namespace artec {
namespace sdk {
namespace base
22 class ICancellationToken;
41 saveObjFrameToFile(
const wchar_t* path,
const IFrameMesh* mesh, IProgressInfo* progr = 0, ICancellationToken* cncl = 0,
42 bool saveNormals =
true,
bool saveTexCoords =
true,
const wchar_t* imageFormat = L
"png");
44 saveObjCompositeToFile(
const wchar_t* path,
const ICompositeMesh* mesh, IProgressInfo* progr = 0, ICancellationToken* cncl = 0,
45 bool saveNormals =
true,
bool saveTexCoords =
true,
const wchar_t* imageFormat = L
"png");
59 saveObjFrameToBlob(IBlob** data,
const IFrameMesh* mesh, IProgressInfo* progr = 0, ICancellationToken* cncl = 0,
60 bool saveNormals =
true,
bool saveTexCoords =
true,
const wchar_t* materialFilename = NULL);
62 saveObjCompositeToBlob(IBlob** data,
const ICompositeMesh* mesh, IProgressInfo* progr = 0, ICancellationToken* cncl = 0,
63 bool saveNormals =
true,
bool saveTexCoords =
true,
const wchar_t* materialFilename = NULL);
74 loadObjFrameFromFile(IFrameMesh** mesh,
const wchar_t* path, IProgressInfo* progr = 0, ICancellationToken* cncl = 0);
76 loadObjCompositeFromFile(ICompositeMesh** mesh,
const wchar_t* path, IProgressInfo* progr = 0, ICancellationToken* cncl = 0);
88 loadObjFrameFromBlob(IFrameMesh** mesh,
const IBlob* data, IProgressInfo* progr = 0, ICancellationToken* cncl = 0);
90 loadObjCompositeFromBlob(ICompositeMesh** mesh,
const IBlob* data, IProgressInfo* progr = 0, ICancellationToken* cncl = 0);
110 bool saveNormals =
true,
bool saveTexCoords =
true,
const wchar_t* imageFormat = L
"png")
112 return saveObjFrameToFile(path, mesh, progr, cncl, saveNormals, saveTexCoords, imageFormat);
117 bool saveNormals =
true,
bool saveTexCoords =
true,
const wchar_t* imageFormat = L
"png")
135 bool saveNormals =
true,
bool saveTexCoords =
true,
const wchar_t* materialFilename = NULL)
137 return saveObjFrameToBlob(data, mesh, progr, cncl, saveNormals, saveTexCoords, materialFilename);
142 bool saveNormals =
true,
bool saveTexCoords =
true,
const wchar_t* materialFilename = NULL)
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.
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.
Class to save/load OBJ files.
ErrorCode ABASESDK_LINK_SPEC saveObjCompositeToBlob(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.
ErrorCode ABASESDK_LINK_SPEC loadObjCompositeFromFile(ICompositeMesh **mesh, const wchar_t *path, IProgressInfo *progr=0, ICancellationToken *cncl=0)
Load IFrameMesh/ICompositeMesh from OBJ file.
ErrorCode ABASESDK_LINK_SPEC loadObjFrameFromBlob(IFrameMesh **mesh, const IBlob *data, IProgressInfo *progr=0, ICancellationToken *cncl=0)
Load IFrameMesh/ICompositeMesh from OBJ blob.
Indexed triangle mesh with optional texture.
static ErrorCode load(ICompositeMesh **mesh, const IBlob *data, IProgressInfo *progr=0, ICancellationToken *cncl=0)
Load IFrameMesh/ICompositeMesh from OBJ blob.
ErrorCode ABASESDK_LINK_SPEC saveObjCompositeToFile(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.
ErrorCode ABASESDK_LINK_SPEC loadObjFrameFromFile(IFrameMesh **mesh, const wchar_t *path, IProgressInfo *progr=0, ICancellationToken *cncl=0)
Load IFrameMesh/ICompositeMesh from OBJ file.
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.
Callback interface to notify process about cancellation.
ErrorCode ABASESDK_LINK_SPEC loadObjCompositeFromBlob(ICompositeMesh **mesh, const IBlob *data, IProgressInfo *progr=0, ICancellationToken *cncl=0)
Load IFrameMesh/ICompositeMesh from OBJ blob.
Interface for Binary Large Object (memory chunk) with smart reference counting.
static ErrorCode load(IFrameMesh **mesh, const IBlob *data, IProgressInfo *progr=0, ICancellationToken *cncl=0)
Load IFrameMesh/ICompositeMesh from OBJ blob.
Interface for a progress notification listener.
static ErrorCode load(IFrameMesh **mesh, const wchar_t *path, IProgressInfo *progr=0, ICancellationToken *cncl=0)
Load IFrameMesh/ICompositeMesh from OBJ file.
Indexed triangle mesh with optional unwrapped textures.
ErrorCode ABASESDK_LINK_SPEC saveObjFrameToBlob(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.
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.
static ErrorCode load(ICompositeMesh **mesh, const wchar_t *path, IProgressInfo *progr=0, ICancellationToken *cncl=0)
Load IFrameMesh/ICompositeMesh from OBJ file.
#define ABASESDK_LINK_SPEC
ErrorCode ABASESDK_LINK_SPEC saveObjFrameToFile(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.