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

Method set_attribute

python/pymesh/Mesh.py:108–111  ·  view source on GitHub ↗

Set attribute to the given value.

(self, name, val)

Source from the content-addressed store, hash-verified

106 (self.num_voxels, -1), order="C")
107
108 def set_attribute(self, name, val):
109 """ Set attribute to the given value.
110 """
111 self.__mesh.set_attribute(name, val.ravel(order="C"))
112
113 def remove_attribute(self, name):
114 """ Remove attribute from mesh.

Callers 13

cut_meshFunction · 0.95
partition_into_cellsFunction · 0.45
extract_submesh_surfaceFunction · 0.45
extract_submesh_volumeFunction · 0.45
signed_distance_to_meshFunction · 0.45
booleanFunction · 0.45
convex_hullFunction · 0.45
extract_layerFunction · 0.45
meshMethod · 0.45
map_vertex_attributeFunction · 0.45
map_face_attributeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected