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:
commit
964a841de1
3978 files changed
+58013356
No files matched your search
@@ -0,0 +1,34 @@
|
||||
"""Negative test helper: move selected objects of the open doc (inside Rhino 8, via runner).
|
||||
|
||||
Globals: __rhino_doc__, PIER_ID, MOVES = [{"id": "BS08"} | {"mark": "P2"}, "d": [dx, dy, dz]}, ...],
|
||||
optional UNDO (move back by -d). A `mark` selector moves the first occurrence (sorted) of that mark,
|
||||
centreline and pipe together. Prints what was moved; raises if a selector matches nothing.
|
||||
"""
|
||||
import json
|
||||
|
||||
import Rhino.Geometry as rg
|
||||
from Rhino.DocObjects import ObjectEnumeratorSettings
|
||||
|
||||
doc = __rhino_doc__
|
||||
s = ObjectEnumeratorSettings()
|
||||
s.HiddenObjects = True
|
||||
s.LockedObjects = True
|
||||
objs = list(doc.Objects.GetObjectList(s))
|
||||
sign = -1 if globals().get("UNDO") else 1
|
||||
moved = []
|
||||
for mv in MOVES:
|
||||
if "id" in mv:
|
||||
sel = [o for o in objs if o.Attributes.GetUserString("id") == f"{PIER_ID}-{mv['id']}"]
|
||||
else:
|
||||
cand = [o for o in objs if o.Attributes.GetUserString("mark") == mv["mark"]
|
||||
and (o.Attributes.GetUserString("id") or "").startswith(f"{PIER_ID}-R")]
|
||||
first = sorted({o.Attributes.GetUserString("occurrence") for o in cand})[0] if cand else None
|
||||
sel = [o for o in cand if o.Attributes.GetUserString("occurrence") == first]
|
||||
if not sel:
|
||||
raise RuntimeError(f"perturb: nothing matches {mv}")
|
||||
dx, dy, dz = (sign * v for v in mv["d"])
|
||||
xf = rg.Transform.Translation(dx, dy, dz)
|
||||
for o in sel:
|
||||
doc.Objects.Transform(o.Id, xf, True)
|
||||
moved.append(o.Attributes.GetUserString("id"))
|
||||
print(json.dumps({"moved": moved, "undo": sign < 0}))
|
||||
Reference in new issue
Block a user