23FacesEntity::FacesEntity()
50 this->faces.resize(
faces.size());
52 for (
auto& face:
faces) {
53 this->faces[i++] = face;
62 for (
auto& face:
faces) {
63 auto& textureCoordinateIndices = face.getTextureCoordinateIndices();
64 if (textureCoordinateIndices[0] != -1 && textureCoordinateIndices[1] != -1 && textureCoordinateIndices[2] != -1)
textureCoordinatesAvailable =
true;
65 auto& tangentIndices = face.getTangentIndices();
66 auto& biTangentIndices = face.getBitangentIndices();
67 if (tangentIndices[0] != -1 && tangentIndices[1] != -1 && tangentIndices[2] != -1 &&
76 this->lod1Indices[i++] = lod1Index;
84 this->lod2Indices[i++] = lod2Index;
92 this->lod3Indices[i++] = lod3Index;
Represents a model face, consisting of vertex, normal, tangent and bitangent vectors,...
Node faces entity A node can have multiple entities containing faces and a applied material.
FacesEntity()
Public constructor.
void determineFeatures()
Determine features.
vector< int32_t > lod1Indices
vector< int32_t > lod2Indices
bool textureCoordinatesAvailable
vector< int32_t > lod3Indices
void setLOD2Indices(const vector< int32_t > &lod2Indices)
Set LOD2 indices.
void setLOD1Indices(const vector< int32_t > &lod1Indices)
Set LOD1 indices.
void setLOD3Indices(const vector< int32_t > &lod3Indices)
Set LOD3 indices.
bool tangentBitangentAvailable
void setFaces(const vector< Face > &faces)
Set up entity's faces.
Class representing texture UV coordinates data.