This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user