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

Method is_vertex_attribute

tools/Wires/Attributes/WireAttributes.cpp:80–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80bool WireAttributes::is_vertex_attribute(const std::string& name) const {
81 AttrMap::const_iterator itr = m_attr_map.find(name);
82 if (itr == m_attr_map.end()) {
83 throw_attribute_not_found_error(name);
84 }
85 return itr->second->get_attribute_type() == WireAttribute::VERTEX;
86}
87
88void WireAttributes::remove_attribute(const std::string& name) {
89 AttrMap::iterator itr = m_attr_map.find(name);

Callers 6

update_attributesMethod · 0.45
TEST_FFunction · 0.45

Calls 4

findMethod · 0.80
get_attribute_typeMethod · 0.80
endMethod · 0.45

Tested by 3

TEST_FFunction · 0.36