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

Method add_attribute

src/Attributes/MeshAttributes.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void PyMesh::MeshAttributes::add_attribute(const std::string& name, Mesh& mesh) {
25 MeshAttribute::Ptr attr = MeshAttributeFactory::create(name);
26 attr->compute_from_mesh(mesh);
27 m_attributes.insert(AttributeMapEntry(name, attr));
28}
29
30void PyMesh::MeshAttributes::remove_attribute(const std::string& name) {
31 AttributeMap::iterator itr = m_attributes.find(name);

Callers 15

compute_from_meshMethod · 0.45
compute_from_meshMethod · 0.45
compute_from_meshMethod · 0.45
compute_from_meshMethod · 0.45
compute_from_meshMethod · 0.45
compute_from_meshMethod · 0.45
compute_from_meshMethod · 0.45
compute_from_meshMethod · 0.45
compute_from_meshMethod · 0.45
compute_from_meshMethod · 0.45

Calls 2

compute_from_meshMethod · 0.45
insertMethod · 0.45

Tested by 1

compute_from_meshMethod · 0.36