| 22 | } |
| 23 | |
| 24 | void 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 | |
| 30 | void PyMesh::MeshAttributes::remove_attribute(const std::string& name) { |
| 31 | AttributeMap::iterator itr = m_attributes.find(name); |