mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 11:03:03 +08:00
use log.debug and display idx+1
This commit is contained in:
@ -417,7 +417,7 @@ 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 (not idx%100 or idx+1==len(rings_sorted)):
|
||||
log.info(f"SVG triangulation: {idx}/{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