Hi,
I'm wondering if there is a way to store a parent shape to refer back to in CGA. I used the shapeO operation to randomly generate O-shaped area. And then I ran a comparison to see if the area is greater than a certain threshold. If not, I want to regenerate the O-shaped area again until it meets the criteria. My current cga creates a recursion. But I was wondering if I can get a hold of the parent shape the OShape was generated from.
OShape -->
shapeO(rand(0, 5), rand(0,50), rand(0, 20), rand(0,20)){shape:X|remainder: Calc}
Calc -->
case geometry.area > 60:
extrude(10)
else:
OShape<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>Any pointers are appreciated!
Lesi