I am having an issue with my brep being invalid after a sweep1.

I am not sure what is going on for it to result in an invalid brep.

rail = open
section = closed planar curve

could some one please look as my script and let me know what might be the issue?

I have attached both GH file and 3DM file.

Thank you,
Joey Doherty

invalid brep issue - joey.gh (15.3 KB) invalid brep issue - joey.gh.3dm (947.5 KB)

I haven’t looked at this very closely, but it looks like your profile is slightly skewed relative to the rail. I guess this is probably causing some strange things to happen at the mitred edges.

Hey Adam,

Thanks for the reply.

I’m going to check to see if that might be the issue but the rectangle you see in the image is not the rail to sweep the section on. It is actually irrelevant to the script. I forgot to take it out when attaching it to the forum haha my bad.

The image shows the profile and the rail together (the geometry you have connected to the sweep), zoomed in at the bottom right hand corner (top view). If I rotate the profile to align with the rail and then sweep, the brep is valid.

Hey Adam,

I saw exactly what you meant and adjusted it. It works fine now!



1 Like