I am new to Grasshopper and Kangaroo I am trying to bend two plates by connecting the corners with cables and reducing their length. However, when doing this, the lower plate is pinching through the surface of the upper one. I think I should use the CollideMesh component but I am confused about its output (collide mesh). Could you please help me with this? Thanks in advance!!
I canât know for sure but is there also some missing geometry in that file? (not internalized brep and/or points?)
I donât have much of a clue how to use Kangaroo but have learned quite a bit trying to answer this question by adapting code posted two days ago by @DanielPiker in this thread:
I havenât succeeded yet but Iâve learned one thing about Kangaroo that drives me mad! In my ignorance, Iâve apparently defined constraints that are impossible to resolve, so Kangaroo goes into an infinite loop and there is NOTHING I can do to regain control, short of closing Rhino. SO VERY ANNOYING!!!
Again, I am clueless about Kangaroo and canât use your code (I have Kangaroo2 installed), so this probably wonât help. There are some bizarre hacks here to adapt @DanielPikerâs AnchorXY.gh example from the Force density thread, and the results arenât pretty. See the purple group, for example, which culls the ânaked pointsâ around the hole edges to prevent them from being considered âanchorsâ and includes them instead in the âclothed pointsâ to be moved, constrained only in X and Y while âfloatingâ in Z.
Kangaroo doesnât always adapt to changes upstream, so to speak, such as changing the Max Edge length slider (Custom Mesh Settings) of the original mesh, or changing the number of holes. It flails horribly in those cases until I close and re-open the GH file, though it does respond as expected to changing the Z depth slider. Amusing but not that impressive.
By the way, I did try anchoring only the corner points so the edges could sag too, like the pavilion picture, but the result looked bad. My two cents worth from the Kangaroo peanut gallery.
This wonât be news to experienced Kangaroo folk but the âStrengthâ inputs of various components change things in noticeable ways. In Danielâs original code, the Anchor strength was set to ten thousand, for example, whereas the code I posted had that reduced to only â10â. I didnât notice the difference myself until after I posted, but itâs pretty obvious if you look at the edge points.
This version adds âStrengthâ sliders to make it easier to see their effects: