Artec 3D Scanning SDK  2.0
Static Public Member Functions | List of all members
artec::sdk::base::io::Buff Class Reference

Class to save/load BUFF (simple format to store mesh data). More...

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

Static Public Member Functions

static ErrorCode save (const wchar_t *path, const IFrameMesh *mesh, IProgressInfo *progr=0, ICancellationToken *cncl=0)
 Save IFrameMesh to BUFF file. More...
 
static ErrorCode save (IBlob **data, const IFrameMesh *mesh, IProgressInfo *progr=0, ICancellationToken *cncl=0)
 Save IFrameMesh to BUFF blob. More...
 
static ErrorCode load (IFrameMesh **mesh, const wchar_t *path, IProgressInfo *progr=0, ICancellationToken *cncl=0)
 Load IFrameMesh from BUFF file. More...
 
static ErrorCode load (IFrameMesh **mesh, const IBlob *data, IProgressInfo *progr=0, ICancellationToken *cncl=0)
 Load IFrameMesh from BUFF blob. More...
 

Detailed Description

Class to save/load BUFF (simple format to store mesh data).

It provides convenient static methods to save and load meshes to and from BUFF files. It is composed of the following fields:

In other words, point array takes up 3 * sizeof(float) * (number of points) bytes. Triangle array takes up 3 * sizeof(int) * (number of triangles) bytes.

Definition at line 82 of file BuffIO.h.

Member Function Documentation

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

Load IFrameMesh from BUFF file.

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

Definition at line 115 of file BuffIO.h.

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

Load IFrameMesh from BUFF 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 127 of file BuffIO.h.

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

Save IFrameMesh to BUFF file.

Parameters
path- file path where to save mesh
mesh- mesh to save
progr- progress interface
cncl- cancellation interface

Definition at line 92 of file BuffIO.h.

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

Save IFrameMesh to BUFF blob.

Note
Saves only geometry without texture (image is stored in a separate blob)
Parameters
data- blob where to save mesh
mesh- mesh to save
progr- progress interface
cncl- cancellation interface

Definition at line 104 of file BuffIO.h.


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