Open or closed curve - bug?

Open the small file.

Click the curve. Rhino says it is an open curve. Try joining it. Does not work (it is joined already).

Explode the curve.

Join the curve. It becomes a closed curve.

Great. But why? And how?

Please explain.

This is an inconsistency that can take a while to figure out. First looking for small gaps (have a small script for that now). Fixing those gaps (often so small that the zooming does not work anymore). Then being frustrated that the curve will not become closed. Exploding. Joining. Finally managed.

(Sorry, I’m the creator of weird geometries.)

open_or_closed_curve_261022.3dm (46.8 KB)

Definately an open curve. I am not sure why join is failing on it but I confirm it is also failing on my machine (9.0.26286.06303, 13/10/2026) and i see the same behaviour on Rhino 8 (8.37.26293.10001, 2026-10-20)

We come across many curves like this in CNC work, Join via Rhinocommon does work… so i suspect this is a tolerance issue? Though adjusting Tolerances I can’t get the Join command to work.

Hi @erik6,

The curve is open by about 0.0000000066 mm between its start and end point — far below tolerance, but not exactly zero, which is what the closed test looks for. Join only closes a curve as part of joining it to another curve; with a single curve there is nothing to join, so nothing changes. When exploded, joining the last segment brings the ends together, which is why Explode + Join works.

To close a curve like this directly, use CloseCrv. With a gap this small it moves the end point onto the start point and leaves the segments intact.

– Dale

Hello Dale,

thanks for the answer.

I use CloseCrv a lot, but did not know that fixed geometry flaws like this. I use it to close open crvs fast, instead of drawing the segment missing.

When does it stop fixing the flaw automatically without adding segments? Is there a tolerance for that? And what if the angle of the segment changes by closing it?

Could we have a command (I programmed one myself) that finds the open segments in curves that are not closed? It was quite hard sometimes to find it. My small routine makes it much simpler and faster.

Thanks
/Erik

Hej Erik -

The CloseCrv command has the following options:

( CloseWideGapsWithLine=Yes Tolerance=0.05 )

I’m not sure what you mean by the angle of a segment. Closing a curve by moving the end point to the start point will change that curve.

The ShowEnds command has options that allow showing only the start and/or end of open curves.
-wim