# Is there any way to determine the position of the cutting point on the model when dividing

623
4
09-03-2022 01:53 AM
Labels (1)
by
New Contributor III

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

4 Replies
by
New Contributor III

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

by
New Contributor III

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

Occasional Contributor

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

by
New Contributor III

Thank you very much for your reply. It really helped