- Basic 2D projection

This commit is contained in:
bklronin
2024-07-09 15:45:34 +02:00
parent 5ff48c0f5e
commit b5c965bf2e
3 changed files with 75 additions and 15 deletions

View File

@@ -74,8 +74,8 @@ class MainWindow(QMainWindow):
def add_new_sketch_wp(self):
self.sketchWidget.clear_sketch()
edges = [((-158.0, -20.0, -25.0), (286.0, -195.0, -25.0)), ((-158.0, -20.0, 25.0), (-158.0, -20.0, -25.0))]
#edges = self.custom_3D_Widget.access_selected_points
#edges = [((-158.0, -20.0, -25.0), (286.0, -195.0, -25.0)), ((-158.0, -20.0, 25.0), (-158.0, -20.0, -25.0))]
edges = self.custom_3D_Widget.project_tosketch_edge
normal = self.custom_3D_Widget.selected_normal
self.sketchWidget.create_workplane_projected()
@@ -310,7 +310,7 @@ class MainWindow(QMainWindow):
items = self.ui.body_list.findItems(name_op, Qt.MatchExactly)[0]
self.ui.body_list.setCurrentItem(items)
self.calc_sketch_projection_3d(lines, 0, length)
#self.draw_mesh()
self.draw_mesh()
def send_cut(self):
name = self.ui.body_list.currentItem().text()