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

Method add_empty_attribute

src/Attributes/MeshAttributes.cpp:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void PyMesh::MeshAttributes::add_empty_attribute(const std::string& name) {
20 MeshAttribute::Ptr attr = MeshAttributeFactory::create(name);
21 m_attributes.insert(AttributeMapEntry(name, attr));
22}
23
24void PyMesh::MeshAttributes::add_attribute(const std::string& name, Mesh& mesh) {
25 MeshAttribute::Ptr attr = MeshAttributeFactory::create(name);

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected