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

Method export_attribute

src/IO/PLYParser.cpp:139–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void 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
148void PLYParser::add_property(const std::string& elem_name,
149 const std::string& prop_name, size_t size) {

Callers 1

initialize_attributesMethod · 0.45

Calls 4

findMethod · 0.80
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected