Exemple #1
0
 def set_radii(self, radii: npt.ArrayLike):
     n_points = len(self.get_points())
     radii = np.array(radii).reshape((len(radii), 1))
     self.data["radii"] = resize_preserving_order(radii, n_points)
     self.refresh_bounding_box()
     return self
 def set_radii(self, radii):
     self.data["radii"][:] = resize_preserving_order(
         radii, len(self.data["radii"]))
     self.refresh_bounding_box()
     return self
Exemple #3
0
 def set_radii(self, radii):
     if not isinstance(radii, numbers.Number):
         radii = resize_preserving_order(radii, len(self.data["radii"]))
     self.data["radii"][:] = radii
     return self