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

Method __add_attribute

python/pymesh/Boundary.py:52–54  ·  view source on GitHub ↗
(self, attr_name)

Source from the content-addressed store, hash-verified

50 self.__boundary_node_areas = self.__mesh.get_attribute("vertex_area").ravel()
51
52 def __add_attribute(self, attr_name):
53 if not self.__mesh.has_attribute(attr_name):
54 self.__mesh.add_attribute(attr_name)
55
56 @property
57 def num_boundary_nodes(self):

Callers 2

Calls 2

has_attributeMethod · 0.45
add_attributeMethod · 0.45

Tested by

no test coverage detected