GameCult.Geometry.Csg/docs/research/aetheris-evaluation/harness/edges.py
Meta Vens df6a1cc96f Research: Aetheris B-rep kernel evaluation (facts, torture harness, OCCT STEP checks)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 04:02:38 +02:00

9 lines
456 B
Python

import sys, re, collections
for f in sys.argv[1:]:
t = open(f).read()
ec = set(re.findall(r"#(\d+)=EDGE_CURVE", t))
uses = collections.Counter()
for m in re.finditer(r"ORIENTED_EDGE\([^,]*,\*,\*,#(\d+),", t):
uses[m.group(1)] += 1
hist = collections.Counter(uses.values())
print("EDGES", f.split("/")[-1], "edge_curves", len(ec), "oriented_edge_uses_per_edge_histogram", dict(hist), "edges_never_used", len(ec - set(uses)))