Explorar o código

Create a python script to help center nodes

on grid cells.
DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
9db18abcfd
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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("- - -")