| 137 | } |
| 138 | |
| 139 | void PLYParser::export_attribute(const std::string& name, Float* buffer) { |
| 140 | AttributeMap::const_iterator itr = m_attributes.find(name); |
| 141 | if (itr == m_attributes.end()) { |
| 142 | throw_attribute_not_found_exception(name); |
| 143 | } |
| 144 | const std::vector<Float>& attr = itr->second; |
| 145 | std::copy(attr.begin(), attr.end(), buffer); |
| 146 | } |
| 147 | |
| 148 | void PLYParser::add_property(const std::string& elem_name, |
| 149 | const std::string& prop_name, size_t size) { |
no test coverage detected