From 43c77be3a1bdf9ff19d271181a58b57163102047 Mon Sep 17 00:00:00 2001 From: AKreuzer Date: Sat, 15 Jun 2024 23:02:23 +0200 Subject: [PATCH] =?UTF-8?q?=D8=AF=D9=85=D8=AC=20=D9=81=D8=B1=D8=B9=20?= =?UTF-8?q?=D8=A7=D9=84=D8=AA=D8=AA=D8=A8=D8=B9=20=D8=B9=D9=86=20=D8=A8?= =?UTF-8?q?=D8=B9=D8=AF=20"=D8=A7=D9=84=D9=85=D9=86=D8=A8=D8=B9/=D8=A7?= =?UTF-8?q?=D9=84=D8=B1=D8=A6=D9=8A=D8=B3=D9=8A"=20=D9=81=D9=8A=20=D8=A7?= =?UTF-8?q?=D9=84=D9=85=D9=84=D9=81=20=D8=A7=D9=84=D8=B1=D8=A6=D9=8A=D8=B3?= =?UTF-8?q?=D9=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/main.py b/main.py index 285d50d..7e2c27f 100644 --- a/main.py +++ b/main.py @@ -5,6 +5,8 @@ def main(): if __name__ == '__main__': main() + + from gdpc import Editor, Block, geometry, Transform import networks.curve as curve import numpy as np @@ -36,26 +38,4 @@ geometry.placeCuboid(editor, (-5,0,-8), (25,100,25), Block("air")) # create a building at the relative position 0,0 with 20 blocks length and 20 blocks width, with a normal shape and 10 floors building = Building(random_data["buildings"], [(0,0,0), (20,30,20)], baseShape, DIRECTION.EAST) # build it with your custom materials -building.build(editor, ["stone_bricks","glass_pane","glass","cobblestone_wall","stone_brick_stairs","oak_planks","white_concrete","cobblestone","stone_brick_slab","iron_bars"]) - - - - - - -# # Get a block -# block = editor.getBlock((0,48,0)) - -# # Place a block -# editor.placeBlock((0 , 5, 0), Block("stone")) - -# # Build a cube -# geometry.placeCuboid(editor, (458, 92, 488), (468, 99, 471), Block("oak_planks")) - -# 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")) +building.build(editor, ["stone_bricks","glass_pane","glass","cobblestone_wall","stone_brick_stairs","oak_planks","white_concrete","cobblestone","stone_brick_slab","iron_bars"]) \ No newline at end of file