SBSDK 3.3.5
Polyga’s SB SDK is a set of programmable API’s that allow users to directly communicate and control any of Polyga’s 3D scanners using C++, C# or Command line.
Public Member Functions | Public Attributes | List of all members
SBSDK3::SBMesh Class Reference

Mesh Class Definition. SBMesh contains the information related to the vertices and vaces, as well as functions to access the data. More...

#include <SBData.h>

Public Member Functions

 SBMesh ()
 Default class constructor. More...
 
virtual ~SBMesh ()
 Default class deconstructor. More...
 
size_t getNumVertices ()
 Returns the number of vertices in the mesh. More...
 
void getVertices (SBVector *vertexArray)
 Returns the number of vertices in the mesh. More...
 
size_t getNumNormals ()
 Returns the number of normals in the mesh. More...
 
void getNormals (SBVector *normalArray)
 Returns the number of normals in the mesh. More...
 
size_t getNumFaces ()
 Returns the number of faces in the mesh. More...
 
void getFaces (SBFace *faceArray)
 Returns the number of faces in the mesh. More...
 
size_t getNumVertexColors ()
 Returns the number of vertex color. More...
 
void getVertexColors (SBColor *colorArray)
 Returns the number of vertex color values in the mesh. More...
 
size_t getNumUVs ()
 Returns the number of uv. More...
 
void getUVs (SBUv *uvArray)
 Returns the number of UVs in the mesh. More...
 
bool getTextureImage (SBImage &img)
 Returns the texture images. More...
 
bool save (const char *fileName)
 Save mesh to disk. Returns if success. Supported Formats: More...
 
bool applyTransform (const SBTransform &transform)
 Apply transform to the mesh. Returns if success. More...
 
bool empty ()
 Returns if it is empty Returns true if it is empty. More...
 

Public Attributes

std::shared_ptr< PLG::PLGMesh > mpPLGMesh
 
SBImage mTextureImage
 
SBImage mVImage
 

Detailed Description

Mesh Class Definition. SBMesh contains the information related to the vertices and vaces, as well as functions to access the data.

See also
SBFace, SBVector, SBColor

Constructor & Destructor Documentation

◆ SBMesh()

SBSDK3::SBMesh::SBMesh ( )

Default class constructor.

◆ ~SBMesh()

SBSDK3::SBMesh::~SBMesh ( )
virtual

Default class deconstructor.

Member Function Documentation

◆ getNumVertices()

SBSDK3::SBMesh::getNumVertices ( )

Returns the number of vertices in the mesh.

◆ getVertices()

SBSDK3::SBMesh::getVertices ( SBVector vertexArray)

Returns the number of vertices in the mesh.

Parameters
[out]vertexArraySBVector pointer where the result will be returned. Make sure the pointer has been preallocated using new SBVector[numVertices]
See also
SBVector

◆ getNumNormals()

SBSDK3::SBMesh::getNumNormals ( )

Returns the number of normals in the mesh.

◆ getNormals()

SBSDK3::SBMesh::getNormals ( SBVector normalArray)

Returns the number of normals in the mesh.

Parameters
[out]normalArraySBVector pointer where the result will be returned. Make sure the pointer has been preallocated using new SBVector[numNormals]
See also
SBVector

◆ getNumFaces()

SBSDK3::SBMesh::getNumFaces ( )

Returns the number of faces in the mesh.

See also
SBFace, SBVector, SBColor

◆ getFaces()

SBSDK3::SBMesh::getFaces ( SBFace faceArray)

Returns the number of faces in the mesh.

Parameters
[out]faceArraySBFace pointer where the result will be returned. Make sure the pointer has been preallocated using new SBFace[numFaces]
See also
SBFace

◆ getNumVertexColors()

SBSDK3::SBMesh::getNumVertexColors ( )

Returns the number of vertex color.

◆ getVertexColors()

SBSDK3::SBMesh::getVertexColors ( SBColor colorArray)

Returns the number of vertex color values in the mesh.

Parameters
[out]colorArraySBColor pointer where the result will be returned. Make sure the pointer has been preallocated using new SBColor[numColors]
See also
SBColor

◆ getNumUVs()

SBSDK3::SBMesh::getNumUVs ( )

Returns the number of uv.

◆ getUVs()

SBSDK3::SBMesh::getUVs ( SBUv uvArray)

Returns the number of UVs in the mesh.

Parameters
[out]uvArraySBUv pointer where the result will be returned. Make sure the pointer has been preallocated.
See also
SBUv

◆ getTextureImage()

SBSDK3::SBMesh::getTextureImage ( SBImage img)

Returns the texture images.

Parameters
[out]imgSBImage Container for the texture images. Returns true if success.
See also
SBImage

◆ save()

SBSDK3::SBMesh::save ( const char *  fileName)

Save mesh to disk. Returns if success. Supported Formats:

Parameters
[in]fileNameconst char* containing the fileName and extension.

◆ applyTransform()

SBSDK3::SBMesh::applyTransform ( const SBTransform transform)

Apply transform to the mesh. Returns if success.

Parameters
[in]transformconst SBTransform containing the transform information to apply.

◆ empty()

SBSDK3::SBMesh::empty ( )

Returns if it is empty Returns true if it is empty.

Member Data Documentation

◆ mpPLGMesh

std::shared_ptr<PLG::PLGMesh> SBSDK3::SBMesh::mpPLGMesh

◆ mTextureImage

SBImage SBSDK3::SBMesh::mTextureImage

◆ mVImage

SBImage SBSDK3::SBMesh::mVImage

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