Files
ClaudeandClaude Opus 5.5 dfe2c65b9b G1 band25 blind review v1: 24 unrelated, 1 UNRESOLVED (frozen before custody join)
Inputs: anonymous package 3864d341 only (ZIP/manifest SHA256 re-verified).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 17:27:13 +00:00

16 lines
761 B
Python

import sys,math,os
sys.path.insert(0,os.path.dirname(__file__))
from inv import readply,jacobi
def frame(V):
n=len(V); m=[sum(v[i] for v in V)/n for i in range(3)]
Q=[(v[0]-m[0],v[1]-m[1],v[2]-m[2]) for v in V]
C=[[sum(q[i]*q[j] for q in Q)/n for j in range(3)] for i in range(3)]
ev,vec=jacobi(C)
return [tuple(sum(q[k]*vec[i][k] for k in range(3)) for i in range(3)) for q in Q]
root,pid=sys.argv[1],sys.argv[2]
for side in('left','right'):
V,F=readply(os.path.join(root,'pairs',pid,side+'.ply')); P=frame(V)
ext=[max(p[i] for p in P)-min(p[i] for p in P) for i in range(3)]
r=[math.hypot(p[0],p[1]) for p in P]
print(pid[:8],side,'bbox_pca',[round(e,3) for e in ext],'rmin_inplane',round(min(r),3),'rmax',round(max(r),3))