The first gray figure is the original shape, the red line is the cutting line I want, the middle is the actual cutting effect, and the bottom is what I want when I manually modify the shape
I want to get the elevation effect on the left side instead of the repetitive effect on the right side based on each face. I tried to use UV segmentation, but it seems to not work
I used UV segmentation, but it still starts with each face. I hope these faces in front of me can apply a segmentation rule as a whole
Hi I saw this and I think there is a way as I've worked on this before, but it depends on your initial shape (it won't work on all) based on what you've asked here you can use the information stored about edge length and combine it with a split recursion. Basically obtain the edge lengths as an array :
edgeLength = scope.sx
attr edgesNumber = geometry.nEdges
attr egdeLengthArray = comp(e){border:edgeLength}
Then in the rule do some kind of split recursion...
Footprint-->
SplitArray(1,edgesNumber)
SplitArray(indx,mx)-->
case indx ==mx : NIL
else :
split(z){~1:SplitArray(indx+2,mx)|edgeLengthArray[indx]: x}
You will need to rotatescope to ensure the split works and you might also need to change the indx it starts on (depends on what 0 edge is). Hope this helps!
Elliot
Thank you very much for your reply. It really helped