MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / add_property_value

Method add_property_value

src/IO/PLYParser.cpp:170–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void 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
181void PLYParser::init_vertices() {
182 std::string field_names[] = {

Callers 1

ply_parser_call_backFunction · 0.80

Calls 4

form_attribute_nameFunction · 0.85
findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected