If I draw a box in grasshopper and remove the bottom surface, how do I unroll this open box so the top surface is in the middle and the sides fold up on the four sides of the top surface?
Thanks in advance.
If I draw a box in grasshopper and remove the bottom surface, how do I unroll this open box so the top surface is in the middle and the sides fold up on the four sides of the top surface?
Thanks in advance.
Sorry I didnât read properly⊠In Rhino, you could try the command _UnjoinEdge
Perfectly reasonable question, where is your GH file? What component are you using to unroll? This Unroll component is from OpenNest.
Adding Jitter tells me that the sequence of surfaces affects Unroll.
P.S. @martinsiegristâs cryptic reply is the key. In Rhino, â_UnjoinEdgeâ and select the vertical edges, then âUnrollSrfâ and toggle the option âExplode=Noâ. Wonder if OpenNest Unroll works the same way?
I forgot I have a definition with scripts for both unjoin and unroll. The scripts are by @DavidRutten and @Michael_Pryor
brep_unjoin_edge_unroll_c.gh (23.8 KB)
R8 C#. The first script (U = B.UnjoinEdges(edges);) is rather slow and depends on edge midpoints that are not otherwise defined/derived. The second script has a âCâ input with two weird curves that make no sense at all ![]()
On the other hand, for the specific case cited in this thread, the four sides can be rotated by their top edges.
I should have deleted the curves⊠Thos are frrom another example. Curves and points can be unrolledd with the polysurface.
The points are needed to define which edge is unjoined.
I left a âPersian flawâ in my code - rotation direction (±) depends on the direction of the axis edge curves. ![]()
Persian flaws are considered a desirable feature of Persian rugs and are often seen as a sign of quality and authenticity. The idea behind the Persian flaw is that perfection is only in the hands of the gods, and that even the most skilled craftsmen should not try to claim it.
Thanks already for helping me out here. Iâm rather new to grasshopper and experimenting for my employer to speed up design.
This is the file I started with but got stuck.
What I see above looks very promissing.
Thank you guys.
Pallet cover Parametric.gh (10.1 KB)
Plugins.
Your âboxâ isnât a box, itâs five separate sides. Cyan group fixes that. Scale of your box and my two examples are vastly different! You have to zoom way in on the origin to see mine.
Added purple box at the bottom to âflip rotation axisâ but QA testing is minimal.
Thank you very much for your help.
I am going to try it out.