Hi, I’m trying to perform a sweep along multiple curves, each with a different profile, but I’m not sure if I’m doing it the right way. This is the method I’m currently using—can anyone help or suggest a better approach?
Sweep_Louvers with differnt profile.gh (112.0 KB)
Hello there;
It should not be so complicated- however your datas are unfortunately surprinsingly arranged (messy?) and I suspect thatt is why you might be struggling - Are you familiar with data tree ?
Basically you want each profiles to be sorted in the correct order and be located in a individual branch for each louver
You also want all you rails to be sorted/grafter in individual branches
So when you connect your profiles and your rails the sweeps happen !
Why are your profiles and curves are listed in such a surprinsing order in your input component (I see a flatten, thats probably one of the problems)?
Could be helpfull to see what is happening a little bit before in your script - I assume you did not model the curves and profiles by hand - maybe, the way you scripted generated a poor data structure that prevent you from getting the sweeps
Hello again : I gave it a quick try; trying to “post process clean/rationalize” your inputs.
Sweep_Louvers with differnt profile_RGH Forum_20250416.gh (132.5 KB)
The logic works, but your inputs are inadequate in my opinion : Why do you sometimes have 2 profiles curves on top of each other and most of the time not ? I suppose this is not wanted ?
I strongly think it needs to be cleaned before (your inputs should have a data structure) rather than doing the “post process clean/rationalize” I did.
Hopefully my advice makes sense