Add working curve

This commit is contained in:
2024-04-20 17:12:53 +02:00
parent 8089d813f8
commit 0e5e6a9313
2 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ from gdpc import Editor, Block, geometry
import networks.curve as curve
import numpy as np
# editor = Editor(buffering=True)
editor = Editor(buffering=True)
# # Get a block
# block = editor.getBlock((0,48,0))
@@ -13,5 +13,10 @@ import numpy as np
# # Build a cube
# geometry.placeCuboid(editor, (458, 92, 488), (468, 99, 471), Block("oak_planks"))
curve = curve.Curve([(0, 0, 0), (1, 1, 1), (5, 5, 5), (1, 1, 1), (1, 1, 1)])
curve = curve.Curve([(396, 132, 740), (435, 138, 730),
(443, 161, 758), (417, 73, 729)])
curve.compute_curve()
for point in curve.computed_points:
print(point)
editor.placeBlock(point, Block("stone"))