- Bsic sketch to object approach

This commit is contained in:
bklronin
2024-08-16 20:21:21 +02:00
parent b80185e93e
commit 511b5da78a
5 changed files with 162 additions and 12 deletions

View File

@@ -267,6 +267,7 @@ class MainWindow(QMainWindow):
sketch.slv_lines = []
sketch.proj_points = []
sketch.proj_lines = []
self.sketchWidget.reset_buffers()
self.sketchWidget.set_sketch(sketch)
def add_new_sketch_wp(self):
@@ -279,6 +280,7 @@ class MainWindow(QMainWindow):
sketch.slv_lines = []
sketch.proj_points = self.custom_3D_Widget.project_tosketch_points
sketch.proj_lines = self.custom_3D_Widget.project_tosketch_lines
self.sketchWidget.reset_buffers()
self.sketchWidget.set_sketch(sketch)
self.sketchWidget.create_workplane_projected()
self.sketchWidget.convert_proj_points()
@@ -765,7 +767,6 @@ class Project:
assembly: Assembly = None
if __name__ == "__main__":
app = QApplication([])
window = MainWindow()