HingePoints_expl.gh (18.2 KB)
An hinge, as in kangaroo2, is defined by 4 points: 2 point for the start/end of the fold line, and 2 point for the tips.
As so, in a mesh you can’t fold a naked edge, but only an interior edge.
Now, it’s unlikely you want to fold ALL the interior edge of a mesh in the same way, so you need firstly to find WHICH edge to fold, and then “extract” the 4 point “handles” for every one of them.
To do this you can use the “HingePoints” element.
As you can see it create 4 lists that have the same lenght of the “E2” output of “MeshEdges” component.
The 1,2,3,4 outputs of “HingePoints” element are the same and in the same sequence of “Hinge” component:
FoldStart, FoldEnd, Tip1, Tip2.
(This can be useful even to measure the angle around a specific edge of a mesh, using “FoldAngle”.)
In attached definition will see the “rule” i made: i want to fold only internal edges that have their midpoint inside the curves, with that true/false pattern i took only the HingePoints i needed, and used them.
Tell me if it is still unclear.