| 12 | using namespace PyMesh; |
| 13 | |
| 14 | bool PyMesh::MeshAttributes::has_attribute(const std::string& name) { |
| 15 | AttributeMap::iterator itr = m_attributes.find(name); |
| 16 | return (itr != m_attributes.end()); |
| 17 | } |
| 18 | |
| 19 | void PyMesh::MeshAttributes::add_empty_attribute(const std::string& name) { |
| 20 | MeshAttribute::Ptr attr = MeshAttributeFactory::create(name); |