Check all attributes have the same number of points.
(self)
| 158 | setattr(self, 'normal_w', None) |
| 159 | |
| 160 | def check_dim(self): |
| 161 | """Check all attributes have the same number of points.""" |
| 162 | n = self.xyz_w.size(1) |
| 163 | for name in self.attr_names: |
| 164 | arr = getattr(self, name, None) |
| 165 | if arr is None: |
| 166 | continue |
| 167 | else: |
| 168 | assert arr.size(1) == n, f'{name}.shape = {arr.shape}, num_points not {n}' |
| 169 | |
| 170 | def insert_point_at_inf(self): |
| 171 | """ |
no test coverage detected