Add curve

This commit is contained in:
2024-04-20 16:56:43 +02:00
parent f6f86e1721
commit 8089d813f8
4 changed files with 47 additions and 56 deletions

18
main.py
View File

@@ -1,15 +1,17 @@
from gdpc import Editor, Block, geometry
import networks.curve as curve
import numpy as np
# editor = Editor(buffering=True)
# # Get a block
# block = editor.getBlock((0,48,0))
editor = Editor(buffering=True)
# # Place a block
# editor.placeBlock((394, 132, 741), Block("stone"))
# Get a block
block = editor.getBlock((0,48,0))
# # Build a cube
# geometry.placeCuboid(editor, (458, 92, 488), (468, 99, 471), Block("oak_planks"))
# Place a block
editor.placeBlock((394, 132, 741), Block("stone"))
# 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.compute_curve()