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

Method get_face_attribute

python/pymesh/Mesh.py:88–96  ·  view source on GitHub ↗

Same as :py:meth:`.get_attribute` but reshaped to have :py:attr:`num_faces` rows.

(self, name)

Source from the content-addressed store, hash-verified

86 (self.num_vertices, -1), order="C")
87
88 def get_face_attribute(self, name):
89 """ Same as :py:meth:`.get_attribute` but reshaped to have
90 :py:attr:`num_faces` rows.
91 """
92 if self.num_faces == 0:
93 return self.__mesh.get_attribute(name)
94 else:
95 return self.__mesh.get_attribute(name).reshape(
96 (self.num_faces, -1), order="C")
97
98 def get_voxel_attribute(self, name):
99 """ Same as :py:meth:`.get_attribute` but reshaped to have

Callers 9

map_face_attributeFunction · 0.80
map_corner_attributeFunction · 0.80
quad_to_triFunction · 0.80
mesh_to_dual_graphFunction · 0.80
compute_cell_labelsFunction · 0.80

Calls 1

get_attributeMethod · 0.45

Tested by 3