One too many objects along divided BRep

Hi everyone,

I am a beginner in GH and new to this forum, I appreciate your patience in advance.

I have searched this forum for the answer to my questions and while some are similar, none solve the problem, which seems like a relatively easy fix.

I have a BRep, and I deconstructed it, and divided it, then placed PFrames along the dividion points of the perimeter of the BRep, then attached an object to the PFrames.

All of this works well, except that there is one too many objects along the perimeter of the divided BRep - see attached files.

I just need there to be one less object along each edge so that the object does not go beyond the perimeter.

Can anyone please help? I am hoping this can be an easy fix to what I already have, instead of using an entirely new method to achieve the result.

Thank you!!

divide.3dm (56.6 KB)

divide.gh (18.3 KB)

There are probably many other ways of doing this.


divide_re.gh (19.4 KB)

Thank you so much!!! I wouldn’t have been able to figure that out on my own, but now I see how it’s done. Thank you again!!

You can also use this and you don’t need use brep and deconstruct; it is already a surface

Thank you very much Seghier, I appreciate the follow up on this question!

Seghier is there any chance you can upload the GH file so I can see what the “curve” is attached to? Thank you!

I used your surface

divide_2.gh (15.7 KB)