Thanks Riccardo, but I had already used rhino’s join command to join all the surfaces.
The confirmation msg was “18 surfaces or polysurfaces joined into one closed polysurface.”
I also used the brep join component but it didn’t make a difference.
Your curves don’t touch each-other! if you zoom in enough you’ll see it directly on screen.
Almost certainly because the original solid geometry has gaps, maybe it was made with low accuracy or the exportation to rhino lost some details.
On rhino, if you use the command “Join” and select the curves 1 by 1, rhino will trigger a message and ask if you want to join even with large gap. (If you select all them at once it will just silently fail).
I’ve made a simple c# join curve with custom tolerance:
private void RunScript(List<Curve> C, double t, ref object A)
A = Rhino.Geometry.Curve.JoinCurves(C, t);
Riccardo you star, thank you.
You were perfectly right.
I checked the end and start points of those planar curves, and about 4 decimals down, they were microscopically different.
Seems like it happens when importing my igs files into rhino. The surfaces of solids don’t all meet up edge to edge.
So I tried another format, and rhino read it as a fully closed solid, and all my planar curves were closed.
And your definition worked too!
thank you thank you