UnrollSrf component suddenly dysfunctional

I have a big script (>10MB), made for a client. Somewhere i flatten 3D BReps to 2D outlines for fabrication purposes. I do this using a Py3 component with just a simple UnrollSrf command. It worked for years but now suddenly, out of nowhere, i get different results.

Weirdly, it worked like normal in the morning. Even more weird, even before updating Rhino the change happened. Now i get this in any version of the script i made recently. I hadn’t changed anything, except looking around in some clusters for some unrelated bug. I’m on a Mac but i now get the same results on Windows. It is as if the UnrollSrf function suddenly changed.

While writing this i noticed something, which is that the unrolled BRep came out as one flat joined Brep, instead of several sub surfaces, which i realized is what the script expected. So actually, adding a Brep Deconstruct seems to have solved the problem :white_check_mark: :white_check_mark: :white_check_mark: I am relieved.

However, i came this far so i’m posting anyway. Maybe someone from McNeel can confirm there has been an interation in this function. Also so i can sleep soundly knowing this will not happen again soon/suddenly. The stakes are pretty high, tbh.

Hi @Calcman,

It looks like the core unroll code hasn’t changed for a couple of years. The unroll code is pretty large and it’s certainly possible that some other low-level function(s), called by unroll, have changed. There isn’t an easy way to track this down.

If you have a file, or files, that used to unroll but now don’t, then we’d like to see the geometry and some simplified version of the script that performs the computation.

Thanks,

– Dale

Hello Dale, thank you for your reply. I am still dealing with the change in results. As i wrote earlier i found out that the output seems to have changed from unjoined brep to joined brep. This was an easy fix in my script but then it also seems that the resulting orientation of the unrolled brep has changed. This has given my quite a headache but that is also due to the nature of my script.

Unfortunately the problem has also occured on the computer of my client. My client was able to use the script on his Windows computer for a while, but since yesterday it seems he’s getting the same results as me. Tried it on another computer of his. Opened the GH file and noticed some things being downloaded, for instance a Python update. When loaded i got the same result. However, on my old laptop, running R7, it still functions as before. The script is too dated to work with, but at least i can see the structure of the data i need.

I will prepare a file and send it over. Can i DM it to you?

Best, Bas

Hi @Calcman,

Is this fix what’s causing your issue?

– Dale

Hi @Dale, sure looks like it.

I took this as an opportunity to make my script more robust. I think its finally working again.

I prepared a small file that i’ll DM you.