I have written a fairly simple script for a parametric drainpipe bend connector. It has a male and female end, and uses loft curves to get a smooth shape between them. Lots of little bits of curves joined up later, the complete brep is meshed and baked for export to the printer.
An example has been printed and is in use.
adv_downpipe_joint.gh (30.3 KB)
Now, I want to extend it to this comical thing - the downpipe off the front gutter goes through 3 different bends in a short distance, and clogs up with moss every week or two. Itās a very wet area. The gutter is not easily reachable from the window, but the bottom of the first bend is, so the plan is to add a moss trap there with a hatch or plug so i can empty it weekly without getting the ladder out.
I have tried using the same approach, lofting from the female top to the moss trap bottom, and then doing a mesh difference each way, exploding the results and discarding the pieces that are āinsideā the joint pipe system. The index of the piece to be discarded is unpredictable as the mesh varies, and I am having a nightmare getting the meshes to combine back reliably - all to often half the mesh disappears on a union.
So, I am probably starting from the wrong place. Would I be better off doing something like placing points around the male, female and trap curves (inside and out), creating guide lines between them and then surfacing around that?