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>
This commit is contained in:
ahnyongjooandClaude Sonnet 5.5 committed 2026-10-28 11:20:18 +09:00
commit 964a841de1
3978 files changed
+58013356

No files matched your search

@@ -0,0 +1,52 @@
#! python3
# read-only: arcs below the KDS 24 14 21 Table 4.5-1 minimum, per bar diameter, in the latest modified model of each bridge
import os, json, math, collections, traceback, sys
sys.path.insert(0, r"C:\Users\User\AppData\Local\PierApp\jobs\c1_work")
import Rhino
from c1_core import BASE, required_rc, NOMINAL
FILES = {
"ungok": os.path.join(BASE, "철근 모델랑 운곡교P1_바이브코딩", "운곡교p1_수정6_20261026.3dm"),
"sanoe": os.path.join(BASE, "검토_산외교P1", "산외교P1 G5_수정2_20261026.3dm"),
"okseong": os.path.join(BASE, "검토_옥성교P1", "옥성교P1_G5_수정2_20261026.3dm"),
"rampa": os.path.join(BASE, "Ramp-A교P1", "ramp-A G5_수정_20261023.3dm"),
}
OUT = r"C:\Users\User\AppData\Local\PierApp\jobs\c1_work\c1_kds_scan.json"
res = {}
try:
for key, p in FILES.items():
doc = Rhino.RhinoDoc.OpenHeadless(p)
st = Rhino.DocObjects.ObjectEnumeratorSettings()
st.HiddenObjects = True; st.LockedObjects = True; st.NormalObjects = True
lay = {l.Index: l.FullPath for l in doc.Layers}
per_dia = collections.OrderedDict()
bad = collections.OrderedDict()
for o in doc.Objects.GetObjectList(st):
g = o.Geometry
if not (isinstance(g, Rhino.Geometry.PolyCurve) and "중심선" in lay.get(o.Attributes.LayerIndex, "")):
continue
a = o.Attributes
dia = a.GetUserString("dia")
mark = a.GetUserString("mark")
req, d = required_rc(dia)
dd = per_dia.setdefault(d, {"req": req, "arcs": 0, "min_r": 1e9, "below": 0, "bars": 0})
dd["bars"] += 1
for i in range(g.SegmentCount):
s = g.SegmentCurve(i)
ok, arc = s.TryGetArc()
if ok and not s.IsLinear():
dd["arcs"] += 1
dd["min_r"] = min(dd["min_r"], arc.Radius)
if arc.Radius < req - 1e-6 and math.degrees(arc.Angle) < 179.0 or (math.degrees(arc.Angle) >= 179.0 and arc.Radius < req - 1e-6):
dd["below"] += 1
b = bad.setdefault(mark + "/" + dia, {"bars": set(), "arcs": 0, "min_r": 1e9})
b["bars"].add(a.Name)
b["arcs"] += 1
b["min_r"] = min(b["min_r"], arc.Radius)
res[key] = {"per_dia": {str(k): {"req_center_R": v["req"], "bars": v["bars"], "arcs": v["arcs"], "min_R_found": round(v["min_r"], 3) if v["arcs"] else None, "arcs_below": v["below"]} for k, v in sorted(per_dia.items())},
"below_by_mark": {k: {"bars": len(v["bars"]), "arcs": v["arcs"], "min_R": round(v["min_r"], 3)} for k, v in bad.items()}}
doc.Dispose()
except Exception:
res["error"] = traceback.format_exc()
res["done"] = True
json.dump(res, open(OUT, "w", encoding="utf-8"), ensure_ascii=False, indent=1)