Hi Felix
I think Matthias Buehler does something like this:
- draw some shapes covering the terrain
- select the shapes
- then run a python script to perform a block subdivision on them
subdsettings = SubdivideShapesSettings()
subdsettings.setLotSubdivisionMethod("RECURSIVE")
subdsettings.setLotAreaMin(100.0)
subdsettings.setLotAreaMax(100.0)
subdsettings.setIrregularity(0)
terrainShapes = ce.subdivideShapes(ce.selection(), subdsettings)
terrain = ce.getObjectsFrom(ce.scene, ce.isMapLayer)[0]
settings = AlignShapesSettings()
settings.setHeightmap(ce.getName(terrain))
settings.setAlignFunction("PROJECT_ALL")
ce.alignShapes(terrainShapes, settings)