add shift button in geometry window

This commit is contained in:
Theophile Terraz committed 2024-08-05 15:50:22 +02:00
1 parent a698d46144
commit 12cca24d8b
10 files changed
+281 -5

No files matched your search

+6
View File
@@ -779,3 +779,9 @@ class ProfileXYZ(Profile, SQLSubModel):
self.point(i),
self.point(i+1)
)
def shift(self, x, y, z):
for p in self.points:
p.x = p.x + x
p.y = p.y + y
p.z = p.z + z