MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / TweakAflw

Function TweakAflw

jni/stasm/shape17.cpp:197–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197static void TweakAflw( // hacks to more closely approximate a me17 shape from an AFLW shape
198 Shape& shape17) // io
199{
200 const double eyemouth = EyeMouthDist(shape17);
201 // upper and lower lip not available
202 if (PointUsed(shape17, L17_CTopOfTopLip))
203 shape17(L17_CTopOfTopLip, IY) -= .07 * eyemouth;
204 if (PointUsed(shape17, L17_CBotOfBotLip))
205 shape17(L17_CBotOfBotLip, IY) += .07 * eyemouth;
206 // nostrils not available
207 if (PointUsed(shape17, L17_LNostril))
208 shape17(L17_LNostril, IX) += .1 * eyemouth;
209 if (PointUsed(shape17, L17_RNostril))
210 shape17(L17_RNostril, IX) -= .1 * eyemouth;
211}
212
213static void TweakHelen( // hacks to more closely approximate a me17 shape from a Helen shape
214 Shape& shape17) // io

Callers 1

Shape17OrEmptyFunction · 0.85

Calls 2

EyeMouthDistFunction · 0.85
PointUsedFunction · 0.85

Tested by

no test coverage detected