I’m working from the ‘Mastering openFrameworks: Creative Coding Demystifies’ where I’m trying to compute normals for the mesh.

The problem I’m facing is that with the line:

```
norm[i].getNormalized();
```

I am getting the error:

```
No member named 'getNormalized' in 'glm::tvec3<float, glm::packed_highp>'
```

I have looked on other threads and this error doesn’t come up with the fixed issues. Any help would be great, I’m going insane.

Full setNormals() section:

```
void setNormals( ofMesh &mesh ){
//The number of the vertices
int nV = mesh.getNumVertices();
//The number of the triangles
int nT = mesh.getNumIndices() / 3;
vector<glm::vec3> norm( nV ); //Array for the normals
//Scan all the triangles. For each triangle add its
//normal to norm's vectors of triangle's vertices
for (int t=0; t<nT; t++) {
//Get indices of the triangle t
int i1 = mesh.getIndex( 3 * t );
int i2 = mesh.getIndex( 3 * t + 1 );
int i3 = mesh.getIndex( 3 * t + 2 );
//Get vertices of the triangle
const ofPoint &v1 = mesh.getVertex( i1 );
const ofPoint &v2 = mesh.getVertex( i2 );
const ofPoint &v3 = mesh.getVertex( i3 );
//Compute the triangle's normal
ofPoint dir = ( (v2 - v1).getCrossed( v3 - v1 ) ).getNormalized();
//Accumulate it to norm array for i1, i2, i3
norm[ i1 ] += dir;
norm[ i2 ] += dir;
norm[ i3 ] += dir;
}
//Normalize the normal's length
for (int i=0; i<nV; i++) {
norm[i].getNormalized();
}
//Set the normals to mesh
mesh.clearNormals();
mesh.addNormals( norm );
```

}