Same as :py:meth:`.get_attribute` but reshaped to have :py:attr:`num_faces` rows.
(self, name)
| 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 |