I am currently working on recreating a city in Blender. I have two 3D versions of this city: the first one comes from my lidar data, therefore it is deformed and very "raw". The second one is a clean 3D version (a simple extrusion of the buildings from an openstreetmaps map), but the buildings do not have the good height.
I am very new to using python with 3D objects, but do you think it is possible to make a script that would make my clean 3D buildings automatically take the height of the buildings of the raw lidar version?
I would imagine, as an example, a script that would make my two objs have the same height when the x and y coordinates are equal?
I would appreciate any help, even by just telling me "where" I should look at to find answers.
Thanks in advance
Victoria H
EDIT 1: Here is an example of my buildings: on the right the "clean" one, which has wrong elevation, and on the left the one that comes from lidar data and is deformed but has good elevation
EDIT 2: I applied a shrinkwrap modifier, and the elevation infos seem to be correctly aquired by my "clean" buildings. However, they are slightly deformed on the x and y axis. Is there a way to apply this modifier only on the height of my objects (Z axis) and not on the x and y axis?
EDIT 3: here is a link to a blender file where I have saved 2 of these buildings: