Files
Pier_v1/Code/review_pipeline/dots_method/okdots2.py
T
ahnyongjooandClaude Sonnet 5.5 964a841de1 chore(rebar): Pier_T_rebar 작업 폴더 초기 구성 및 외부 의존 파일 통합
- Code\rebar_pipeline, review_pipeline, pier-program을 정션에서 실제 폴더로 전환
- Code\rhino_mcp 및 CLAUDE_rhino배경.md 추가, .mcp.json은 PYTHONPATH로 새 위치 사용
- pier-program 내부 .git 제거(이력은 backup\pier-program_20261028.bundle에 보관)
- worktree 가이드 반영(CLAUDE.local.md, HANDOFF.md)
- D:\Rhino-MCP 경로 참조를 새 위치로 치환

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 11:20:18 +09:00

16 lines
719 B
Python

import sys; sys.path.insert(0,".")
import pickle, collections, json
import swdots
segs,texts=pickle.load(open('cache_옥성교P1.dxf.pkl','rb'))
swdots.segs=segs
B=json.load(open('okpos.json',encoding='utf-8'))
for nm,(x0,x1,cx) in (('front',(569700,577400,573552)),('side',(588700,596400,592541))):
D=swdots.dots(x0,x1,321300,324000)
lev=collections.defaultdict(list)
for d in D:
if d[2]==22.5: lev[d[1]].append(round(d[0]-cx,1))
print(nm,[(k,len(v)) for k,v in sorted(lev.items())])
# model centers of z
for m in ['B1','B2','B3','B4','B5','B6','B7','B8']:
zs=collections.Counter(round((b['bb'][2]+b['bb'][5])/2+309179.8,1) for b in B[m]); print(m,B[m][0]['dia'],B[m][0]['shape'],dict(zs))