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

Method get_vertex_attribute

python/pymesh/Mesh.py:78–86  ·  view source on GitHub ↗

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

(self, name)

Source from the content-addressed store, hash-verified

76 return self.__mesh.get_attribute(name).ravel()
77
78 def get_vertex_attribute(self, name):
79 """ Same as :py:meth:`.get_attribute` but reshaped to have
80 :py:attr:`num_vertices` rows.
81 """
82 if self.num_vertices == 0:
83 return self.__mesh.get_attribute(name)
84 else:
85 return self.__mesh.get_attribute(name).reshape(
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

Callers 5

map_vertex_attributeFunction · 0.80
test_vertex_to_vertexMethod · 0.80
mainFunction · 0.80

Calls 1

get_attributeMethod · 0.45