Lines Matching defs:copies
165 float* copies;
169 copies = (float*)malloc(sizeof(float) * 3 * (*numvectors + 1));
170 memcpy(copies, vectors, (sizeof(float) * 3 * (*numvectors + 1)));
175 if (_glmEqual(&vectors[3 * i], &copies[3 * j], epsilon)) {
180 /* must not be any duplicates -- add to the copies array */
181 copies[3 * copied + 0] = vectors[3 * i + 0];
182 copies[3 * copied + 1] = vectors[3 * i + 1];
183 copies[3 * copied + 2] = vectors[3 * i + 2];
189 index into the new copies array */
194 return copies;
1665 float* copies;
1672 copies = _glmWeldVectors(vectors, &numvectors, epsilon);
1693 model->vertices[3 * i + 0] = copies[3 * i + 0];
1694 model->vertices[3 * i + 1] = copies[3 * i + 1];
1695 model->vertices[3 * i + 2] = copies[3 * i + 2];
1698 free(copies);
1845 copies = _glmOptimizeVectors(vectors, &numvectors);
1866 model->normals[3 * i + 0] = copies[3 * i + 0];
1867 model->normals[3 * i + 1] = copies[3 * i + 1];
1868 model->normals[3 * i + 2] = copies[3 * i + 2];
1871 free(copies);
1878 copies = _glmOptimizeVectors(vectors, &numvectors);
1899 model->texcoords[2 * i + 0] = copies[2 * i + 0];
1900 model->texcoords[2 * i + 1] = copies[2 * i + 1];
1903 free(copies);