mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Add condition for calling subdivide_intersections
This commit is contained in:
parent
a44fc2e6d5
commit
2c6e8692ce
1 changed files with 3 additions and 4 deletions
|
@ -303,9 +303,7 @@ class VMobjectFromSVGPath(VMobject):
|
||||||
self.path_obj = path_obj
|
self.path_obj = path_obj
|
||||||
self.should_subdivide_sharp_curves = should_subdivide_sharp_curves
|
self.should_subdivide_sharp_curves = should_subdivide_sharp_curves
|
||||||
self.should_remove_null_curves = should_remove_null_curves
|
self.should_remove_null_curves = should_remove_null_curves
|
||||||
super().__init__(
|
super().__init__(**kwargs)
|
||||||
**kwargs
|
|
||||||
)
|
|
||||||
|
|
||||||
def init_points(self) -> None:
|
def init_points(self) -> None:
|
||||||
# After a given svg_path has been converted into points, the result
|
# After a given svg_path has been converted into points, the result
|
||||||
|
@ -321,7 +319,8 @@ class VMobjectFromSVGPath(VMobject):
|
||||||
# Get rid of any null curves
|
# Get rid of any null curves
|
||||||
self.set_points(self.get_points_without_null_curves())
|
self.set_points(self.get_points_without_null_curves())
|
||||||
# So triangulation doesn't get messed up
|
# So triangulation doesn't get messed up
|
||||||
self.subdivide_intersections()
|
if self.use_simple_quadratic_approx:
|
||||||
|
self.subdivide_intersections()
|
||||||
# Save for future use
|
# Save for future use
|
||||||
PATH_TO_POINTS[path_string] = (
|
PATH_TO_POINTS[path_string] = (
|
||||||
self.get_points().copy(),
|
self.get_points().copy(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue