MCPcopy Create free account
hub / github.com/assaultcube/AC / loopi

Method loopi

source/src/vertmodel.h:722–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720 tag *ntags = new tag[(numtags + 1)*numframes];
721 ntags[numtags].name = newstring(name);
722 loopi(numframes)
723 {
724 memcpy((void *)&ntags[(numtags + 1)*i], &tags[numtags*i], numtags*sizeof(tag));
725
726 tag *t = &ntags[(numtags + 1)*i + numtags];
727 t->pos = m->verts[m->numverts*i + verts[0]];
728 if(numverts > 1)
729 {
730 for(int j = 1; j < numverts; j++) t->pos.add(m->verts[m->numverts*i + verts[j]]);
731 t->pos.div(numverts);
732 }
733 t->identity();
734 }
735 loopi(numtags) tags[i].name = NULL;
736
737 DELETEA(tags);

Callers

nothing calls this directly

Calls 8

particle_emitFunction · 0.85
mulMethod · 0.80
gettranslationMethod · 0.80
invertnormalMethod · 0.80
invertvertexMethod · 0.80
addMethod · 0.45
identityMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected