! Extracts a named Vec3f out of the container. */
| 169 | |
| 170 | /*! Extracts a named Vec3f out of the container. */ |
| 171 | Vec3fa getVec3fa(const char* name, const Vec3fa& def = zero) const { |
| 172 | std::map<std::string,Variant>::const_iterator i = m.find(name); |
| 173 | if (i == m.end() || (*i).second.type != Variant::FLOAT3) return def; |
| 174 | return (*i).second.getVec3fa(); |
| 175 | } |
| 176 | |
| 177 | /*! Extracts a named string out of the container. */ |
| 178 | std::string getString(const char* name, std::string def = "") const { |
no test coverage detected