This commit is contained in:
@@ -5,6 +5,7 @@ from skan.csr import skeleton_to_csgraph
|
||||
from collections import Counter
|
||||
from PIL import Image
|
||||
import random
|
||||
import config
|
||||
|
||||
from gdpc import Editor
|
||||
|
||||
@@ -141,7 +142,7 @@ class Skeleton:
|
||||
Returns:
|
||||
image: 2D path of the skeleton on top of the heightmap.
|
||||
"""
|
||||
editor = Editor()
|
||||
editor = Editor(host=config.getHost())
|
||||
|
||||
buildArea = editor.getBuildArea()
|
||||
buildRect = buildArea.toRect()
|
||||
|
||||
@@ -7,6 +7,7 @@ from gdpc import Block as place
|
||||
import numpy as np
|
||||
import networks.legacy_roads.maths as maths
|
||||
import math
|
||||
import config
|
||||
|
||||
import networks.legacy_roads.tools as tools
|
||||
|
||||
@@ -506,7 +507,7 @@ def irlToMc(coordinates):
|
||||
|
||||
heightmap = Image.open('./world_maker/data/heightmap.png')
|
||||
|
||||
editor = Editor()
|
||||
editor = Editor(host=config.getHost())
|
||||
buildArea = editor.getBuildArea()
|
||||
xMin = (editor.getBuildArea().begin).x
|
||||
yMin = (editor.getBuildArea().begin).y
|
||||
@@ -549,7 +550,7 @@ def setRoads(skeleton):
|
||||
for i in range(len(housesCoordinates)):
|
||||
pos = housesCoordinates[i]
|
||||
# print(pos, "pos0")
|
||||
editor = Editor()
|
||||
editor = Editor(host=config.getHost())
|
||||
xMin = (editor.getBuildArea().begin).x
|
||||
yMin = (editor.getBuildArea().begin).y
|
||||
zMin = (editor.getBuildArea().begin).z
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
from gdpc import Block as place
|
||||
from gdpc import Editor
|
||||
import config
|
||||
import networks.legacy_roads.maths as maths
|
||||
|
||||
|
||||
USE_BATCHING = True
|
||||
editor = Editor(buffering=True, caching=True, multithreading=True)
|
||||
editor = Editor(host= config.getHost(), buffering=True, caching=True, multithreading=True)
|
||||
|
||||
|
||||
def setBlock(block, xyz):
|
||||
|
||||
Reference in New Issue
Block a user