mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Bug fix to Line.insert_n_anchor_points
This commit is contained in:
parent
dca03648ad
commit
29962068db
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ class Line(VMobject):
|
||||||
def insert_n_anchor_points(self, n):
|
def insert_n_anchor_points(self, n):
|
||||||
if not self.path_arc:
|
if not self.path_arc:
|
||||||
n_anchors = self.get_num_anchor_points()
|
n_anchors = self.get_num_anchor_points()
|
||||||
new_num_points = 3*(n_anchors + n)+1
|
new_num_points = 3*(n_anchors + n)-2
|
||||||
self.points = np.array([
|
self.points = np.array([
|
||||||
self.point_from_proportion(alpha)
|
self.point_from_proportion(alpha)
|
||||||
for alpha in np.linspace(0, 1, new_num_points)
|
for alpha in np.linspace(0, 1, new_num_points)
|
||||||
|
|
Loading…
Add table
Reference in a new issue