mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
use log.debug and display idx+1
This commit is contained in:
parent
969aa82f04
commit
a3e4246938
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ def earclip_triangulation(verts: np.ndarray, ring_ends: list[int]) -> list:
|
||||||
chilren = [[] for i in rings]
|
chilren = [[] for i in rings]
|
||||||
for idx, i in enumerate(rings_sorted):
|
for idx, i in enumerate(rings_sorted):
|
||||||
if len(rings_sorted) > 100 and (not idx%100 or idx+1==len(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]:
|
for j in rings_sorted[:idx][::-1]:
|
||||||
if is_in_fast(i, j):
|
if is_in_fast(i, j):
|
||||||
chilren[j].append(i)
|
chilren[j].append(i)
|
||||||
|
|
Loading…
Add table
Reference in a new issue