Files
Pier_v1/Code/review_pipeline/dots_method/swcopc.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

20 lines
1002 B
Python

import sys; sys.path.insert(0,"pylib")
import rhino3dm, pickle, collections, io
o=io.open('swcopc.txt','w',encoding='utf-8')
m3=rhino3dm.File3dm.Read(r"D:\★Pier 자료\심수석님 검토 파일\검토_산외교P1\산외교P1 G5.3dm")
for ob in m3.Objects:
if ob.Attributes.Name=='P1-CP':
g=ob.Geometry
vs=sorted(set((round(v.Location.X,1),round(v.Location.Z,1)) for v in g.Vertices))
# y 구분 없이 (x,z)
o.write(u'코핑 Brep 꼭짓점 (x,z) %d개\n'%len(vs))
for v in vs: o.write(u' %s\n'%(v,))
segs,texts=pickle.load(open('cache_교각배근도(울산P1)_2016.10.28.dxf.pkl','rb'))
pts=collections.Counter()
for a,b,c,l in segs:
if l!='CS-CONC-MAJR': continue
if 5200<a[0]<15800 and -277300<a[1]<-273300 and 5200<b[0]<15800 and -277300<b[1]<-273300:
for p in (a,b): pts[(round(p[0]-10473.9,1),round(p[1],1))]+=1
o.write(u'도면 코핑 윤곽 꼭짓점(x-10473.9, y)\n')
for p,n in sorted(pts.items()): o.write(u' %s x%d\n'%(p,n))