Lines Matching defs:average
1051 * average normal calculation and the corresponding vertex is given
1066 float average[3];
1108 /* calculate the average normal for each vertex */
1111 /* calculate an average normal for this vertex by averaging the
1116 average[0] = 0.0; average[1] = 0.0; average[2] = 0.0;
1119 /* only average if the dot product of the angle between the two
1127 average[0] += model->facetnorms[3 * T(node->index).findex + 0];
1128 average[1] += model->facetnorms[3 * T(node->index).findex + 1];
1129 average[2] += model->facetnorms[3 * T(node->index).findex + 2];
1139 _glmNormalize(average);
1142 model->normals[3 * numnormals + 0] = average[0];
1143 model->normals[3 * numnormals + 1] = average[1];
1144 model->normals[3 * numnormals + 2] = average[2];
1153 /* if this node was averaged, use the average normal */