Sorry I don’t know how to best phrase this question, but it is simple…
I want to square pipe some lines, and I need help constraining the rotating planes for the pipes. I used “plane normal” to create a plane perpendicular to the lines I want to pipe, but the planes’ x/y also rotate, resulting in unwanted rotation of pipes around the axis. This is for timber framing, so the resulted “pipes” should have their edges on the same plane. How can I control this? Many thanks.
The images explain it a lot better… The first image shows the unwanted rotation, the second is the simple piping script I am using.
Sleeping on the fifth method using Plane 3Pt for each pair of lines gave me an insight; if beams (“square pipes”) were coming from both sides and meeting at the ridge curve, one would expect those planes to be vertical. But the method you used to construct those three points doesn’t guarantee vertical planes, or even spacing along both curves.
So I used Crv CP to find matching points on the lower curve directly, created a line between each pair of points and moved their midpoints vertically to create a Plane 3Pt which is then used to find ridge points using PCX(Curve | Plane intersection). The beams (“square pipes”) are not aligned with the ridge curve, similar to the results in version ‘a’ when using HFrame or Z for alignment.
I added this cyan group to your original code to show that three points used to construct each pair of lines create planes (and vectors) that are not vertical, differing from Z by an average of 3.25 degrees.