Hi,
I made this script for a sine curve roof structure that is supposed to have parametric dimensions, but it is not closing properly. Does anyone know how I can fix this?
14 is not a divisor of 100 so your sin function will have a partial last period.
Would be better to use an Expression.
w controls the number of waves.
SinExpression.gh (8.2 KB)
Hi, thank you for your response. And thanks so much for the script. It worked out great!
I also need to extrude the curves in the shape of an I-beam. The I-beams need to be parametric as I don’t know their dimensions yet. I worked on a file to make a parametric cross-section of a i-beam. Can I sweep the HP shell curves with the I-beam cross section?
Sin Curve Expression.gh (9.6 KB)
I-beam script.gh (18.7 KB)
Sorry for not attaching the gh file earlier.
Yep
Extrude would also work since rail is a line.
There is a problem with units however, I scaled the section by 10.
Sin Curve Expression_beams.gh (21.6 KB)