- Sketch projection partly works again :)
This commit is contained in:
10
main.py
10
main.py
@@ -393,11 +393,12 @@ class MainWindow(QMainWindow):
|
||||
|
||||
selected = self.ui.sketch_list.currentItem()
|
||||
name = selected.text()
|
||||
|
||||
# TODO: add selected element from timeline
|
||||
sel_compo = self.project.timeline[-1]
|
||||
print(sel_compo)
|
||||
#print(sel_compo)
|
||||
sketch = sel_compo.sketches[name]
|
||||
print(sketch)
|
||||
#print(sketch)
|
||||
points = sketch.sdf_points
|
||||
|
||||
if points[-1] == points[0]:
|
||||
@@ -407,10 +408,10 @@ class MainWindow(QMainWindow):
|
||||
dialog = ExtrudeDialog(self)
|
||||
if dialog.exec():
|
||||
length, is_symmetric, invert, cut, union_with, rounded = dialog.get_values()
|
||||
print(f"Extrude length: {length}, Symmetric: {is_symmetric} Invert: {invert}")
|
||||
#print(f"Extrude length: {length}, Symmetric: {is_symmetric} Invert: {invert}")
|
||||
else:
|
||||
length = 0
|
||||
print("Extrude cancelled")
|
||||
#print("Extrude cancelled")
|
||||
|
||||
normal = self.custom_3D_Widget.selected_normal
|
||||
#print("Normie enter", normal)
|
||||
@@ -429,6 +430,7 @@ class MainWindow(QMainWindow):
|
||||
|
||||
f = sketch.extrude(length, is_symmetric, invert, 0)
|
||||
|
||||
# Create body element and assign known stuff
|
||||
name_op = f"extrd-{name}"
|
||||
sel_compo.body
|
||||
body = Body()
|
||||
|
||||
Reference in New Issue
Block a user