CRibbonEmitter::TransformVertices
function · models · primitive
- Address
0x7b7bc0· 594 bytes, up to0x7b7e11- Signature
void __thiscall (CRibbonEmitter *this, const float *m)- Meaning
- Moves a ribbon's node positions, axes and ring vertices through a matrix
- Confidence
- verified, proof one
- Finding
- models/ribbons#ribbon-frame-change
- Test
models::ribbonbasis_difftest
Finding: Ribbon frame change in models: ribbons
TransformVertices(m) moves a ribbon into another frame: its last and current node positions
+0x20 and +0x14c and every vertex of its ring go through m (0x7bcc60), and the last and
current up and forward axes +0x7c, +0x88, +0x94 and +0xa0 through its 3×3. The ring is the
+0x3c vertices at +0x40, 20 bytes each with the position first, dead slots included. The edge
ends +0xc4 and the tangents +0xac are not moved. Component R of an axis a is the sum of
a_C·m[4C + R] over C at 53 bits, rounded once, in this order of C:
| axis | x | y | z |
|---|---|---|---|
+0x94 | y, z, x | z, y, x | z, x, y |
+0x7c | z, y, x | z, y, x | x, z, y |
+0xa0 | y, z, x | z, y, x | x, z, y |
+0x88 | x, z, y | x, z, y | z, y, x |
The derivation is in the doc.
Callers 1
- CM2Model::TransformEmitters models
Callees 1
- TransformPointInPlace cmath
Calls and jumps by a bare address, from tables/calls.tsv.