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

Method is_vertex_attribute

python/pymesh/wires/WireNetwork.py:247–251  ·  view source on GitHub ↗

Returns true if ``name`` is a per-vertex attribute.

(self, name)

Source from the content-addressed store, hash-verified

245 return self.raw_wires.get_attribute(name).squeeze()
246
247 def is_vertex_attribute(self, name):
248 """ Returns true if ``name`` is a per-vertex attribute.
249 """
250 assert(self.has_attribute(name))
251 return self.raw_wires.is_vertex_attribute(name)
252
253 def set_attribute(self, name, value):
254 """ Set the value of the attribute ``name`` to be ``value``.

Callers

nothing calls this directly

Calls 1

has_attributeMethod · 0.95

Tested by

no test coverage detected