Hello,
I am trying to get a split.index of an intersected shape (red in picture) in order to use it later as a trigger for deleting all segments that are going after the trigger. I am planning to use this algorithm for X and Z axes as well, so height-related solutions are not suitable for me.
I tried to get the value of this particular (red) segments of splitted extrusion by setting them to attribute, but this didn't work. I am a total newbie, so maybe there is something important in work with indexes and attributes that I am missing? Or is it impossible in general?
Thanks in advance!
attr CellSize = 50
@Hidden
attr CellID = 0
@Hidden
attr totalCellNR = 0
@Hidden
attr badCell = 0
EndMass --> label("stop") color(1,1,0)
Lot -->
extrude(CellSize*10)
split(y) { ~CellSize : Split }*
Split --> set(CellID, split.index) set(totalCellNR, split.total) Check
Check -->
case minimumDistance(all,"stop") == 0 : color(1,0,0) label("theEnd") set(badCell, split.index)
else : X.
Delete -->
case badCell < CellID : NIL
else: X.