Ver Fonte

Create a python script to help center nodes

on grid cells.
DricomDragon há 5 anos atrás
pai
commit
9db18abcfd
1 ficheiros alterados com 10 adições e 0 exclusões
  1. 10 0
      Tools/tile_centering.py

+ 10 - 0
Tools/tile_centering.py

@@ -0,0 +1,10 @@
+#!/usr/bin/python3
+
+# Helper to center nodes on grid cells
+# Execute with python 3 and give coordinates to be adjusted
+
+while(True):
+    x = int(float(input("coordinate :")))
+    x = (x // 64) * 64 + 32
+    print("> fixed :", x)
+    print("- - -")