From 5a95bfa70fd7d8465f94141238a583a52965f977 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sun, 15 Jan 2023 21:28:19 -0800 Subject: [PATCH] Delete align_stroke_width_data_to_points --- manimlib/animation/indication.py | 3 +-- manimlib/mobject/types/vectorized_mobject.py | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/manimlib/animation/indication.py b/manimlib/animation/indication.py index 77b4a932..8275a26a 100644 --- a/manimlib/animation/indication.py +++ b/manimlib/animation/indication.py @@ -215,7 +215,6 @@ class VShowPassingFlash(Animation): return 1.0 def begin(self) -> None: - self.mobject.align_stroke_width_data_to_points() # Compute an array of stroke widths for each submobject # which tapers out at either end self.submob_to_widths = dict() @@ -262,7 +261,7 @@ class FlashAround(VShowPassingFlash): stroke_width: float = 4.0, color: ManimColor = YELLOW, buff: float = SMALL_BUFF, - n_inserted_curves: int = 20, + n_inserted_curves: int = 100, **kwargs ): path = self.get_path(mobject, buff) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index 0672d649..7dae8b4b 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -229,12 +229,6 @@ class VMobject(Mobject): self.set_stroke(color, width, background=background) return self - def align_stroke_width_data_to_points(self, recurse: bool = True) -> None: - for mob in self.get_family(recurse): - mob.data["stroke_width"] = resize_with_interpolation( - mob.data["stroke_width"], len(mob.get_points()) - ) - def set_style( self, fill_color: ManimColor | Iterable[ManimColor] | None = None,