Hi everyone,
So my master rule file generated two masses (a low rise and a high rise whose location is controlled by a slider). I have built in an occlusion test that, when I move high rise around with my sliders, checks and returns red floors if it overlaps with low rise mass - basically to avoid double counting areas and reduce my error. The following rule works in 2016.1 but not in 2017.0 and I can't figure out why.
BuildingEnvelope -->
split(y){ ~Ground_Floor_Height: FloorEnvelope(split.index,split.total)
|~Upper_Floor_Height: OccluTest // testing occlusion only for first 2 floors
|~Upper_Floor_Height: OccluTest // testing occlusion only for first 2 floors
|{ ~Upper_Floor_Height: FloorMassing }*
| Top_Floor_Height : FloorEnvelope(split.index,split.total) }
OccluTest -->
case overlaps (all) && touches (all):
color("#ff0000")
X. // basically it doesn't count area of those floors to reduce the overall error when applied to 100 parcels
else: FloorEnvelope(split.index,split.total)
Screenshot of 2017.0 below.
thanks,
k