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

Method get_attribute

python/pymesh/wires/WireNetwork.py:241–245  ·  view source on GitHub ↗

Get the value of an attribute.

(self, name)

Source from the content-addressed store, hash-verified

239 self.raw_wires.set_attribute(name, value)
240
241 def get_attribute(self, name):
242 """ Get the value of an attribute.
243 """
244 assert(self.has_attribute(name))
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.

Callers 15

quad_to_triFunction · 0.45
separate_meshFunction · 0.45
keep_featuresMethod · 0.45
__get_ave_edge_lengthMethod · 0.45
cut_meshFunction · 0.45
test_samplesMethod · 0.45
test_subdivMethod · 0.45
test_single_quadMethod · 0.45
test_attributesMethod · 0.45
test_ballsMethod · 0.45

Calls 1

has_attributeMethod · 0.95

Tested by 15

test_samplesMethod · 0.36
test_subdivMethod · 0.36
test_single_quadMethod · 0.36
test_attributesMethod · 0.36
test_ballsMethod · 0.36
test_refineMethod · 0.36
test_point_cloudMethod · 0.36
test_cube_refineMethod · 0.36