I am sorry if I sound stupid, but I keep failing on doing a square beam along a curve. I have for two years been doing them by hand in Rhino; but would like to know if at the END of a CURVE, I can create a section rectangle (perpendicular to the endpoint of the curve) and lowering it down; then making a loft or sweep along the curve, something like this drawing…
You can use two sliders instead of only one. One for the X dimension of the rectangle and another for the ‘A’ and ‘B’ inputs to Construct Domain that determines the Y dimension. They can both be Real(Floating Point) instead of Integer.
Right-click on the ‘B’ input and select ‘Expression’, then enter “-x”.
What do you mean by “adding (40ms) to the Sweep1”?
By the way, you can have an expression on both ‘A’ and ‘B’ inputs; ‘A’ is “-x/2” and ‘B’ is “x/2”. That way, the Y dimension overall will be the same as the slider value instead of double it.
You’ll get a better answer if you post the code you have. Expressions on inputs/outputs must always use “x” to refer to the value, regardless of the label (‘A’ or ‘B’). If you’ve done it as I suggested, then using a single slider for both X and Y will result in a square.
P.S. The Expression component with the ‘R’ output is under ‘Maths | Script’.
P.P.S. You could replace the Expression component with another Construct Domain component…
Here. This is what I am trying to do… But I cannot seem to get a hold on it. Some pipes will be right angled, and some will be curved as seen here. But I want the intersections to come out smoothly, as a door frame would do, instead of rotating and not resulting in a true stable frame.