Sweep a rectangle along a closed polyline

Hi everyone,

I know it is quite a simple problem but I cannot figure it out what I am doing wrong. I am trying to extrude a rectangle through a closed polyline using Sweep2 command, but it complains…


Has anyone an idea of what is wrong here?

The idea would be to create this:

Thanks in advance

Sweep_test.gh (12.5 KB)

You cannot put the section in the corner.

This here works:

Sweep_frame.gh (17.8 KB)

hi you can use “Sweep Segmented” from flexibility plugin.

It is strange that if you switch the item component to 2 then it does not work, although the section is placed in the middle of the segment and the curved seamed. Is there a logical reason for that?

Difficult to say why it fails.

A Fit Curve component helps in this case but I see it is not consistent.

I tried with a different rectangle and the sweep 1 fails depending on where the perp frame is placed

Sweep_frame_issue.gh (14.6 KB)

If you don’t mind I think we should change the topic title to ‘Sweep a rectangle along a closed polyline’

The reason it fails might be related to finding the closest point on the curve. The following example does this better I think…

Sweep_frame_cp_frame.gh (15.9 KB)