mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Remove no-longer necessary PathString configuration
This commit is contained in:
parent
c6db74c996
commit
31b937a7f1
1 changed files with 0 additions and 10 deletions
|
@ -295,15 +295,11 @@ class VMobjectFromSVGPath(VMobject):
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
path_obj: se.Path,
|
path_obj: se.Path,
|
||||||
should_subdivide_sharp_curves: bool = False,
|
|
||||||
should_remove_null_curves: bool = True,
|
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
# Get rid of arcs
|
# Get rid of arcs
|
||||||
path_obj.approximate_arcs_with_quads()
|
path_obj.approximate_arcs_with_quads()
|
||||||
self.path_obj = path_obj
|
self.path_obj = path_obj
|
||||||
self.should_subdivide_sharp_curves = should_subdivide_sharp_curves
|
|
||||||
self.should_remove_null_curves = should_remove_null_curves
|
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
def init_points(self) -> None:
|
def init_points(self) -> None:
|
||||||
|
@ -313,12 +309,6 @@ class VMobjectFromSVGPath(VMobject):
|
||||||
path_string = self.path_obj.d()
|
path_string = self.path_obj.d()
|
||||||
if path_string not in PATH_TO_POINTS:
|
if path_string not in PATH_TO_POINTS:
|
||||||
self.handle_commands()
|
self.handle_commands()
|
||||||
if self.should_subdivide_sharp_curves:
|
|
||||||
# For a healthy triangulation later
|
|
||||||
self.subdivide_sharp_curves()
|
|
||||||
if self.should_remove_null_curves:
|
|
||||||
# Get rid of any null curves
|
|
||||||
self.set_points(self.get_points_without_null_curves())
|
|
||||||
# Save for future use
|
# Save for future use
|
||||||
PATH_TO_POINTS[path_string] = self.get_points().copy()
|
PATH_TO_POINTS[path_string] = self.get_points().copy()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue