평면도와 상부평면도 모델을 하나로 통합
This commit is contained in:
1 parent
9d11b4ed62
commit
e473a7caff
10 files changed
+54
-8799
No files matched your search
@@ -212,7 +212,7 @@ def alignment_units(entities):
|
||||
length = radius_m * math.radians(theta1 - theta0)
|
||||
units.append({
|
||||
"id": f"alignment-{index + 1}",
|
||||
"name": f"BLOCK8 평면 중심선 {index + 1}",
|
||||
"name": "BLOCK8 기준 중심선",
|
||||
"center": [(acx - center_x_origin) / 1000, (float(first(props(arc), 20)) - center_y_origin) / 1000],
|
||||
"planOrigin": [center_x_origin, center_y_origin],
|
||||
"radius": radius_m,
|
||||
@@ -222,7 +222,9 @@ def alignment_units(entities):
|
||||
"centerlineHandle": first(props(arc), 5, ""),
|
||||
"boundaryHandles": boundary_handles,
|
||||
})
|
||||
return units
|
||||
# 평면도와 상부평면도에 반복된 중심선은 같은 구조물의 도면 표현이다.
|
||||
# 첫 번째 중심선을 모델 배치 기준으로 사용하고 두 번째는 검산에만 쓴다.
|
||||
return units[:1]
|
||||
|
||||
|
||||
def add_block_parts(parts, entities, blocks, center_x, sections):
|
||||
|
||||
Reference in new issue
Block a user