mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +02:00
Noisy constant for number of vertices in a triangle.
This commit is contained in:
parent
3c88146d17
commit
fb825f6d10
1 changed files with 2 additions and 1 deletions
|
@ -152,7 +152,8 @@ bool OBJFace::add(QByteArray vertexIndex, QByteArray textureIndex, QByteArray no
|
|||
}
|
||||
QVector<OBJFace> OBJFace::triangulate() {
|
||||
QVector<OBJFace> newFaces;
|
||||
if (vertexIndices.count() == 3) {
|
||||
const int nVerticesInATriangle = 3;
|
||||
if (vertexIndices.count() == nVerticesInATriangle) {
|
||||
newFaces.append(*this);
|
||||
} else {
|
||||
for (int i = 1; i < vertexIndices.count() - 1; i++) {
|
||||
|
|
Loading…
Reference in a new issue