Hi,
I'm a new user of CityEngine, i'm a engineering student in topography (french).
I would like to know if it's possible to get the coordinates of a shape in order to use them in the python code ?
For example I have a shape at the elevation of 400 meters and I'd like to extrude it until 420 meters.
Something like this:
attr shapeType = ""
attr Altitude = 420
@StartRule
Height = Altitude - (?? get the shape elevation ??)
Lot -->
case shapeType == "LotInner" :
Lot.
else :
extrude(world.y, Height) comp(f) { side : Wall | top : Roof }
Thanks for your answers.