CONFIG
All checks were successful
Linux arm64 / Build (push) Successful in 1m3s

This commit is contained in:
2024-10-02 16:56:38 +02:00
parent cf85af9a77
commit 5d856dc66b
11 changed files with 29 additions and 17 deletions

View File

@@ -5,13 +5,14 @@ from gdpc import Editor, Block, geometry, lookup
from PIL import Image as img
from PIL.Image import Image
from skimage import morphology
import config
from world_maker.data_analysis import handle_import_image
def remove_trees(heightmap: Union[str, Image], treesmap: Union[str, Image], mask: Union[str, Image]):
print("[Remove tree] Starting...")
editor = Editor(buffering=True)
editor = Editor(host=config.getHost(), buffering=True)
build_area = editor.getBuildArea()
build_rectangle = build_area.toRect()
@@ -44,7 +45,7 @@ def remove_trees(heightmap: Union[str, Image], treesmap: Union[str, Image], mask
def smooth_terrain(heightmap: Union[str, Image], heightmap_smooth: Union[str, Image], mask: Union[str, Image]):
print("[Smooth terrain] Starting...")
editor = Editor(buffering=True)
editor = Editor(host=config.getHost(), buffering=True)
build_area = editor.getBuildArea()
build_rectangle = build_area.toRect()