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

Method get_attribute_size

src/IO/PLYParser.cpp:119–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119size_t PLYParser::get_attribute_size(const std::string& name) const {
120 AttributeMap::const_iterator itr = m_attributes.find(name);
121 if (itr == m_attributes.end()) {
122 throw_attribute_not_found_exception(name);
123 }
124 return itr->second.size();
125}
126
127void PLYParser::export_vertices(Float* buffer) {
128 std::copy(m_vertices.data(), m_vertices.data() + m_vertices.size(), buffer);

Callers 1

initialize_attributesMethod · 0.45

Calls 4

findMethod · 0.80
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected