Same as :py:meth:`.get_attribute` but reshaped to have :py:attr:`num_voxels` rows.
(self, name)
| 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 |
| 100 | :py:attr:`num_voxels` rows. |
| 101 | """ |
| 102 | if self.num_voxels == 0: |
| 103 | return self.__mesh.get_attribute(name) |
| 104 | else: |
| 105 | return self.__mesh.get_attribute(name).reshape( |
| 106 | (self.num_voxels, -1), order="C") |
| 107 | |
| 108 | def set_attribute(self, name, val): |
| 109 | """ Set attribute to the given value. |
no test coverage detected