mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
revert previous changes - we will refactor using tqdm
This commit is contained in:
@ -17,7 +17,6 @@ from manimlib.constants import PI
|
||||
from manimlib.constants import TAU
|
||||
from manimlib.utils.iterables import adjacent_pairs
|
||||
from manimlib.utils.simple_functions import clip
|
||||
from manimlib.logger import log
|
||||
|
||||
|
||||
def cross(v1: np.ndarray, v2: np.ndarray) -> list[np.ndarray]:
|
||||
@ -416,8 +415,6 @@ def earclip_triangulation(verts: np.ndarray, ring_ends: list[int]) -> list:
|
||||
|
||||
chilren = [[] for i in rings]
|
||||
for idx, i in enumerate(rings_sorted):
|
||||
if len(rings_sorted) > 100 and (idx%100 == 0 or idx+1 == len(rings_sorted)):
|
||||
log.debug(f"SVG triangulation: {idx+1}/{len(rings_sorted)}")
|
||||
for j in rings_sorted[:idx][::-1]:
|
||||
if is_in_fast(i, j):
|
||||
chilren[j].append(i)
|
||||
|
Reference in New Issue
Block a user