Need help (deleting volumes) (V-Cut & Bevel-Cut)

Hello,

I use Rhino to design furniture with honeycomb cardboard. I’m currently working on creating a Grasshopper function to automate V-Cuts and Bevel-Cuts in Rhino.

The inputs I have for the V-Cut are :

  • the volume to apply the V-Cut to
  • the folding curve
  • the thickness
  • the angle
  • “left” for rotating the left block, “right” for the right one

For the Bevel-Cut, the inputs are :

  • the volume to apply the Bevel-Cut to
  • the folding curve
  • the thickness
  • the angle
  • “left” if the triangle is to be cut on the left of the folding curve, “right” for the right side
  • “upside” if the triangle is positioned from the top of the volume, “downside” for the bottom

No rotation is performed for the Bevel-Cut.

It’s kind of working, but the issues I have are :

  • I want to automatically bake the whole process, and then delete the original volume. For the V-Cut, I want to keep only the two resulting volumes. For the Bevel-Cut, I want to keep only the original volume cut with a triangle. But when I do this (with Elefront), I end up with a lot of duplicate blocks, even with extensive use of flatten :).

Additionally, there’s an option to automatically create a layer named “V-Cut ” or “Bevel-Cut <right/left> <upside/downside>.” That works, but same issue : Duplications of curves and I can’t remove the original curve.

If anyone wants to use these algorithms for their own work, I’m happy to help !

And if anyone can help me finalize this, thanks in advance ! (Btw, if you notice any other issues, let me know)
V-Cut V4.gh (26.7 KB)
Bevel-Cut V2.gh (26.6 KB)

Still need someone interested…