| 191 | } |
| 192 | |
| 193 | bool NeedEyes( // true if we need the eye detectors for the given mods |
| 194 | const vec_Mod& mods) // in: the ASM model(s) |
| 195 | { |
| 196 | static bool need_eyes = true; // static for efficiency |
| 197 | if (need_eyes && leye_det_g.empty()) // not yet opened? |
| 198 | { |
| 199 | // use the estart field to determine if we need the eyes for any model |
| 200 | need_eyes = false; |
| 201 | for (int imod = 0; imod < NSIZE(mods); imod++) |
| 202 | { |
| 203 | ESTART estart = mods[imod]->Estart_(); |
| 204 | if (estart == ESTART_EYES || |
| 205 | estart == ESTART_EYE_AND_MOUTH) |
| 206 | { |
| 207 | need_eyes = true; |
| 208 | } |
| 209 | } |
| 210 | } |
| 211 | return need_eyes; |
| 212 | } |
| 213 | |
| 214 | bool NeedMouth( // true if we need the mouth detector for the given mods |
| 215 | const vec_Mod& mods) // in: the ASM model(s) |
no test coverage detected