Also when sending a line or curve the viewer displays it correctly
But… Rhino or Grasshopper fails to deserialize. The error ends saying a value cannot be null, but doesn’t say which one. Or maybe it is “item”, but I don’t see a value called item in the data model.
We need to understand which version of Rhino/Grasshopper connector you are trying to receive that model? I looked at the brep and there is many null values, hard to say without knowing the version you are working with.
PS: What you are cooking is
PS2: Did you check the next-gen connectors? Because we are not maintaining v2 connectors unless a critical bug. It would be nice if you can start looking at it because we have been changing our object model a bit.
Hi @oguzhan
Thanks!
Indeed I was using V2 connectors, but I’ve just tried with Rhino next-gen connector and have the same problem.
One precision : receiving line or curve in Rhino from python-occ works, so the bug is really at the level of the brep
From which the following values are null : area, bbox, units, volume, provenance, displayValue, applicationId
Also @ahmedwael94 just tried to debug inside Rhino, we’ve found the error but cannot identify which null value it is related with. Ahmed suggests a zoom this afternoon if you are free?
Hiya! In Next-Gen rhino, this would also fail as in V2, if you are sending breps and not the new opennurbs encoded brepx objects (we’re using this encoding for breps, extrusions, and subd)
Thanks a lot @clrkng , indeed I am using this library :
Indeed I will have to update in the future.
For now I have tried to inform all null values, but I still have the problem.
Something I don’t get is : bbox for example seems to me a “non-mandatory” metadata to be able to rebuild the brep. Can Rhino reception bugs if such “non-mandatory” data is not informed? Where could I get a list of which metadata is mandatory and which is not?
Thanks
With @ahmedwael94 we had another idea of where the bug could come from :
which is the conversion from python to C#?
Because If I send from python-occ to speckle, then receive in python-occ from this url, it works.
But the reception doesn’t’ work in any other connectors (tested in Rhino, gh, Revit and Archicad)
Is there a connector built with python that I could test with (using Brep, so apart from Blender)?
Hi @Jedd
Eurêka
Indeed I was not sending IsoStatus inside BrepTrim
I’m so happy, thanks. I was not used to dev mode in the web viewer, it is really useful. @clrkng let me know if you still want to take a look at the project tomorrow. We are currently planning a visit to London in June with @jonathon, so we will present our work there in any case