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

Method has_attribute

src/Attributes/MeshAttributes.cpp:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

write_surface_meshMethod · 0.45
write_volume_meshMethod · 0.45
write_meshMethod · 0.45
write_node_fileMethod · 0.45
write_face_fileMethod · 0.45
write_elem_fileMethod · 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

findMethod · 0.80
endMethod · 0.45

Tested by 1

compute_from_meshMethod · 0.36