| 168 | } |
| 169 | |
| 170 | void PLYParser::add_property_value(const std::string& elem_name, |
| 171 | const std::string& prop_name, Float value) { |
| 172 | std::string attr_name = form_attribute_name(elem_name, prop_name); |
| 173 | AttributeMap::iterator itr = m_attributes.find(attr_name); |
| 174 | if (itr == m_attributes.end()) { |
| 175 | throw_attribute_not_found_exception(attr_name); |
| 176 | } |
| 177 | std::vector<Float>& attr = itr->second; |
| 178 | attr.push_back(value); |
| 179 | } |
| 180 | |
| 181 | void PLYParser::init_vertices() { |
| 182 | std::string field_names[] = { |
no test coverage detected