Cull curves shorter than

I am contouring a mesh and it generates 40 curves. Some of these need to be culled, specifically the ones that result from a second contour loop at a given Z value.

The Larger Than component seems to be working correctly here to identify curves shorter than a given length


But only two curves end up getting removed from the initial list, which is not what I am expecting.

Looking ahead this step is intended to fix the capping issue happening next, where some of the extruded contours won’t cap.

Here is the definition with internalized mesh.
Thanks for any help.

unnamed.gh (1.4 MB)

Some of the contour curves are not closed. Use the Closed component to check this.

Joining the curves results in a list of closed curves.

Use the Cull Pattern component with the output of the Larger than component instead of the Cull Index component.

This culls 8 curves with the settings you have defined.

Does this produce the desired result?


isCrvClosed.gh (1.4 MB)

1 Like

There are still open curves? For some reason contour is creating several polylines whose endpoints do not coincide:

Utterly bizarre:

Countour is failing on the mesh. Intersecting the mesh with a linear array of horizontal XY planes directly produces closed polylines. Maybe a bug?