Skip to content

Commit b2bdcda

Browse files
committed
update code
1 parent 583e7b5 commit b2bdcda

7 files changed

+2054
-16
lines changed

model/model_pyramid3

598 Bytes
Binary file not shown.

model/model_pyramid3_2

682 Bytes
Binary file not shown.

model/model_pyramid4

604 Bytes
Binary file not shown.

model/model_pyramid5

781 Bytes
Binary file not shown.

src/threeview_convertion.py

+32-16
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,16 @@ def buttonClicked(self, index):
210210
reply = QMessageBox.information(aw, '错误', '请补充完整的端点名称!')
211211
# 面积:查询
212212
elif index == 5:
213-
a = ord(aw.dataLineEdits[6].text()) - 65
214-
b = ord(aw.dataLineEdits[7].text()) - 65
215-
c = ord(aw.dataLineEdits[8].text()) - 65
216-
217-
if aw.vpMainView.certainPlane.count({a, b, c}) > 0:
218-
i = aw.vpMainView.certainPlane.index({a, b, c})
213+
# a = ord(aw.dataLineEdits[6].text()) - 65
214+
# b = ord(aw.dataLineEdits[7].text()) - 65
215+
# c = ord(aw.dataLineEdits[8].text()) - 65
216+
p = []
217+
for i in aw.dataLineEdits[6].text():
218+
p.append(ord(i) - 65)
219+
p = set(p)
220+
221+
if aw.vpMainView.certainPlane.count(p) > 0:
222+
i = aw.vpMainView.certainPlane.index(p)
219223
aw.areaLabel.setText(str(round(aw.vpMainView.areaForPlane[i], 3)))
220224
else:
221225
reply = QMessageBox.information(aw, '错误', '指定面不存在!')
@@ -1804,7 +1808,7 @@ def __init__(self):
18041808
propLabel.setFixedHeight(20)
18051809
propLabels.append(propLabel)
18061810
self.dataLineEdits = []
1807-
for n in range(9):
1811+
for n in range(7):
18081812
temp = QLineEdit()
18091813
self.dataLineEdits.append(temp)
18101814

@@ -1840,7 +1844,7 @@ def __init__(self):
18401844
dataLayout.addWidget(self.dataLineEdits[5], line, 3)
18411845
line += 1
18421846
dataLayout.addWidget(QLabel('长度'), line, 0)
1843-
self.lengthLabel = QLabel('10')
1847+
self.lengthLabel = QLabel('-')
18441848
self.lengthLabel.setFixedHeight(30)
18451849
dataLayout.addWidget(self.lengthLabel, line, 1, 1, 6)
18461850
line += 1
@@ -1854,13 +1858,13 @@ def __init__(self):
18541858
line += 1
18551859
dataLayout.addWidget(QLabel('端点'), line, 0)
18561860
dataLayout.addWidget(self.dataLineEdits[6], line, 1)
1857-
dataLayout.addWidget(QLabel('-'), line, 2)
1858-
dataLayout.addWidget(self.dataLineEdits[7], line, 3)
1859-
dataLayout.addWidget(QLabel('-'), line, 4)
1860-
dataLayout.addWidget(self.dataLineEdits[8], line, 5)
1861+
# dataLayout.addWidget(QLabel('-'), line, 2)
1862+
# dataLayout.addWidget(self.dataLineEdits[7], line, 3)
1863+
# dataLayout.addWidget(QLabel('-'), line, 4)
1864+
# dataLayout.addWidget(self.dataLineEdits[8], line, 5)
18611865
line += 1
18621866
dataLayout.addWidget(QLabel('面积'), line, 0)
1863-
self.areaLabel = QLabel('10')
1867+
self.areaLabel = QLabel('-')
18641868
self.areaLabel.setFixedHeight(30)
18651869
# self.areaLabel.setFixedSize(30, 20)
18661870
dataLayout.addWidget(self.areaLabel, line, 1, 1, 6)
@@ -2005,9 +2009,21 @@ def about(self):
20052009
"""
20062010
1. 平面图转3D主要功能如下:
20072011
a) 提供三视图生成对应立体图
2008-
b) 拖动三视图点实时改变立体图
2009-
c) 拖动立体图点实时改变三视图
2010-
d) 计算立体表面积
2012+
b) 拖动三视图点改变立体图
2013+
C) 计算立体表面积
2014+
2015+
2. 按键功能说明:
2016+
Ctrl + O: 打开数据文件
2017+
Ctrl + D: 清空当前数据
2018+
Ctrl + S: 保存当前数据
2019+
(模板数据文件保存在model文件夹下)
2020+
2021+
3. 右侧面板说明:
2022+
(点区域与线区域需要选择当前视图或点击该视图进行修改)
2023+
点区域支持三视图中点的新增,修改与删除
2024+
线区域支持三视图中线的新增,删除与查询,包括主视图中线的查询
2025+
面区域支持主视图中面积查询
2026+
几何体区域包含对数据的检验,生成以及生成几何体的数据报告
20112027
"""
20122028
)
20132029

0 commit comments

Comments
 (0)