mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Add points in reverse order to AngularSector
This commit is contained in:
parent
96d9e41a35
commit
8d05431b7b
1 changed files with 4 additions and 3 deletions
|
@ -405,6 +405,7 @@ class AnnularSector(VMobject):
|
||||||
fill_color=fill_color,
|
fill_color=fill_color,
|
||||||
fill_opacity=fill_opacity,
|
fill_opacity=fill_opacity,
|
||||||
stroke_width=stroke_width,
|
stroke_width=stroke_width,
|
||||||
|
**kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Initialize points
|
# Initialize points
|
||||||
|
@ -417,11 +418,10 @@ class AnnularSector(VMobject):
|
||||||
)
|
)
|
||||||
for radius in (inner_radius, outer_radius)
|
for radius in (inner_radius, outer_radius)
|
||||||
]
|
]
|
||||||
outer_arc.reverse_points()
|
self.append_points(inner_arc.get_points()[::-1]) # Reverse
|
||||||
self.append_points(inner_arc.get_points())
|
|
||||||
self.add_line_to(outer_arc.get_points()[0])
|
self.add_line_to(outer_arc.get_points()[0])
|
||||||
self.append_points(outer_arc.get_points())
|
self.append_points(outer_arc.get_points())
|
||||||
self.add_line_to(inner_arc.get_points()[0])
|
self.add_line_to(inner_arc.get_points()[-1])
|
||||||
|
|
||||||
|
|
||||||
class Sector(AnnularSector):
|
class Sector(AnnularSector):
|
||||||
|
@ -454,6 +454,7 @@ class Annulus(VMobject):
|
||||||
fill_color=fill_color,
|
fill_color=fill_color,
|
||||||
fill_opacity=fill_opacity,
|
fill_opacity=fill_opacity,
|
||||||
stroke_width=stroke_width,
|
stroke_width=stroke_width,
|
||||||
|
**kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.radius = outer_radius
|
self.radius = outer_radius
|
||||||
|
|
Loading…
Add table
Reference in a new issue