My problem turned out to be that this->meshPoints.getNormalForVertex(i)
accesses an array (or vector, I can’t remember) whose length is less than this->meshPoints.getNumFaces() * 3
. So it was accessing out of bounds.
My problem turned out to be that this->meshPoints.getNormalForVertex(i)
accesses an array (or vector, I can’t remember) whose length is less than this->meshPoints.getNumFaces() * 3
. So it was accessing out of bounds.