Skip to content

Commit

Permalink
Add bounding box as exceptional key to point_cloud mobject
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Oct 5, 2021
1 parent 3822b00 commit ed1fc4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manimlib/mobject/types/point_cloud_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def filter_out(self, condition):
for mob in self.family_members_with_points():
to_keep = ~np.apply_along_axis(condition, 1, mob.get_points())
for key in mob.data:
if key == "bounding_box":
continue
mob.data[key] = mob.data[key][to_keep]
return self

Expand Down

0 comments on commit ed1fc4d

Please sign in to comment.