Files
Seele/test.py
T

19 lines
494 B
Python
Raw Normal View History

2024-08-13 22:44:04 +02:00
2024-10-07 20:14:00 +02:00
i = 4
2024-08-13 22:44:04 +02:00
positions = []
for x in range(i):
for y in range(i):
2024-10-07 20:14:00 +02:00
positions.append(f"Vector({x}.0f / {i-1}, 0, {y}.0f / {i-1})")
2024-08-13 22:44:04 +02:00
indices = []
for y in range(i - 1):
for x in range(i - 1):
2024-10-07 20:14:00 +02:00
indices.append(f'UVector3({(x) + i * (y)}, {(x + 1) + i * (y)}, {(x) + i * (y + 1)})')
indices.append(f'UVector3({(x) + i * (y + 1)}, {(x + 1) + i * (y)}, {(x + 1) + i * (y + 1)})')
2024-08-13 22:44:04 +02:00
print(f"Dim {i}")
print(len(positions))
print(len(indices))
print(positions)
print(indices)