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>
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
◆ SBMesh()
SBSDK3::SBMesh::SBMesh |
( |
| ) |
|
Default class constructor.
◆ ~SBMesh()
SBSDK3::SBMesh::~SBMesh |
( |
| ) |
|
|
virtual |
Default class deconstructor.
◆ 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] | vertexArray | SBVector 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] | normalArray | SBVector 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 |
( |
| ) |
|
◆ getFaces()
SBSDK3::SBMesh::getFaces |
( |
SBFace * |
faceArray | ) |
|
Returns the number of faces in the mesh.
- Parameters
-
[out] | faceArray | SBFace 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] | colorArray | SBColor 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] | uvArray | SBUv 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] | img | SBImage 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] | fileName | const char* containing the fileName and extension. |
◆ applyTransform()
SBSDK3::SBMesh::applyTransform |
( |
const SBTransform & |
transform | ) |
|
Apply transform to the mesh. Returns if success.
- Parameters
-
[in] | transform | const SBTransform containing the transform information to apply. |
◆ empty()
SBSDK3::SBMesh::empty |
( |
| ) |
|
Returns if it is empty Returns true if it is empty.
◆ mpPLGMesh
std::shared_ptr<PLG::PLGMesh> SBSDK3::SBMesh::mpPLGMesh |
◆ mTextureImage
SBImage SBSDK3::SBMesh::mTextureImage |
◆ mVImage
The documentation for this class was generated from the following file: