|
26 | 26 | ) |
27 | 27 |
|
28 | 28 | import numpy as np |
29 | | -import numpy.typing as npt |
30 | 29 | from PIL.Image import Image |
31 | | -from typing_extensions import Self |
32 | 30 |
|
| 31 | +from manim import config |
| 32 | +from manim.constants import * |
| 33 | +from manim.mobject.mobject import Mobject |
33 | 34 | from manim.mobject.opengl.opengl_compatibility import ConvertToOpenGL |
34 | 35 | from manim.mobject.opengl.opengl_vectorized_mobject import OpenGLVMobject |
35 | 36 | from manim.mobject.three_d.three_d_utils import ( |
36 | 37 | get_3d_vmob_gradient_start_and_end_points, |
37 | 38 | ) |
38 | | - |
39 | | -from ... import config |
40 | | -from ...constants import * |
41 | | -from ...mobject.mobject import Mobject |
42 | | -from ...utils.bezier import ( |
| 39 | +from manim.utils.bezier import ( |
43 | 40 | bezier, |
44 | 41 | get_smooth_handle_points, |
45 | 42 | integer_interpolate, |
46 | 43 | interpolate, |
47 | 44 | partial_bezier_points, |
48 | 45 | proportions_along_bezier_curve_for_point, |
49 | 46 | ) |
50 | | -from ...utils.color import BLACK, WHITE, ManimColor, ParsableManimColor |
51 | | -from ...utils.iterables import make_even, resize_array, stretch_array_to_length, tuplify |
52 | | -from ...utils.space_ops import rotate_vector, shoelace_direction |
| 47 | +from manim.utils.color import BLACK, WHITE, ManimColor, ParsableManimColor |
| 48 | +from manim.utils.iterables import ( |
| 49 | + make_even, |
| 50 | + resize_array, |
| 51 | + stretch_array_to_length, |
| 52 | + tuplify, |
| 53 | +) |
| 54 | +from manim.utils.space_ops import rotate_vector, shoelace_direction |
53 | 55 |
|
54 | 56 | if TYPE_CHECKING: |
| 57 | + import numpy.typing as npt |
| 58 | + from typing_extensions import Self |
| 59 | + |
55 | 60 | from manim.typing import ( |
56 | 61 | BezierPoints, |
57 | 62 | CubicBezierPoints, |
@@ -1406,6 +1411,9 @@ def point_from_proportion(self, alpha: float) -> Point3D: |
1406 | 1411 | return curve(residue) |
1407 | 1412 |
|
1408 | 1413 | current_length += length |
| 1414 | + raise Exception( |
| 1415 | + "Not sure how you reached here, please file a bug report at https://github.com/ManimCommunity/manim/issues/new/choose" |
| 1416 | + ) |
1409 | 1417 |
|
1410 | 1418 | def proportion_from_point( |
1411 | 1419 | self, |
|
0 commit comments