Tensor or None: Returns a vector with color of each point in shape (N, 3).
(self)
| 113 | |
| 114 | @property |
| 115 | def color(self) -> Union[Tensor, None]: |
| 116 | """Tensor or None: Returns a vector with color of each point in shape |
| 117 | (N, 3).""" |
| 118 | if self.attribute_dims is not None and \ |
| 119 | 'color' in self.attribute_dims.keys(): |
| 120 | return self.tensor[:, self.attribute_dims['color']] |
| 121 | else: |
| 122 | return None |
| 123 | |
| 124 | @color.setter |
| 125 | def color(self, tensor: Union[Tensor, np.ndarray]) -> None: |