Brep > json > brep

Hello , I am in grasshopper doing some test so I can replicate the behaviour in code.
So I am able to convert a brep to a json which looks like this

{
“type”: “Brep”,
“rawData”: “{“version”:10000,“archive3dm”:60,“opennurbs”:-1943507947,“data”:”+n8CAMgvAAAAAAAA+/8CABQAAAAAAAAAQ8Jv8CqjCEad2KfSxM4qNij+rDr8/wIAkC8AAAAAAAAzAIAAQKENAAAAAAAAEBgAAAABAAAA+n8CAIEAAAAAAAAA+/8CABQAAAAAAAAA29TXTkfp0xG/5QAQgwEi8PSb6SP8/wIASQAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAIAAACL+jLm/38CgAAAAAAAAAAAAQAAAPp/AgCBAAAAAAAAAPv/AgAUAAAAAAAAANvU105H6dMRv+UAEIMBIvD0m+kj/P8CAEkAAAAAAAAAEAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEACAAAAT+VTOf9/AoAAAAAAAAAAAAEAAAD6fwIAgQAAAAAAAAD7/wIAFAAAAAAAAADb1NdOR+nTEb/lABCDASLw9JvpI/z/AgBJAAAAAAAAABAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAgAAAGnvfAb/fwKAAAAAAAAAAAABAAAA+n8CAIEAAAAAAAAA+/8CABQAAAAAAAAA29TXTkfp0xG/5QAQgwEi8PSb6SP8/wIASQAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAIAAACt8B3Z/38CgAAAAAAAAAAAAQAAAPp/AgCBAAAAAAAAAPv/AgAUAAAAAAAAANvU105H6dMRv+UAEIMBIvD0m+kj/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
21,
20,
22,
23
],
“colors”: [],
“hash”: “9b55eeb58161e3c1f3ba45cba6e38aec”
},
“hash”: “67cea45a9e9bff3764d62d928462c802”
}

Then I have been trying different components combinations to try change it back to a brep, without much luck. Which component combinations are you using to achieve this?

I see that I need to unpack the dictionary and feed it to the speckleBrep component , inputs “rawData”, “provenance”, and “displayvalue”. deserialising doesnt work as I had expected…

Cheers

Hello @yun.sung! Welcome to speckle forum - hope it’s going to be a useful stay :slight_smile:

It would help if you could post a screenshot of what you’re doing - it seems like you’re using the schema builder component, no? Theoretically, for native geometry types you shouldn’t need to use it.

Here’s converting a brep to speckle and back again:

You mention you’re doing this in code somewhere somehow, that would also be helpful to see to figure out what’s going on!

Hi @dimitrie , Thank you for your quick response! I was thinking of using the S output of the serialiser, because i need to use the json_string, as its more useful for third party API and persistence. I just cant find a way to deserialise the json_string back to brep using GH components.

The code implementation basically calls the same functions from the specklecore/geometry/conversions dlls. I found they work as expected.

Here are some sample code for brep to json_string:

from SpeckleCoreGeometryRhino.Conversions import ToSpeckle
from SpeckleCore import SpeckleObject
brep_speckle = ToSpeckle(B)
brep_speckle_json = SpeckleObject.ToJson(brep_speckle)
brep_speckle_json_string = json.dumps(brep_speckle_json)
S = brep_speckle_json_string

Here is sample code for json_string back to brep:

from SpeckleCoreGeometryClasses import SpeckleBrep, SpeckleMesh
from SpeckleCoreGeometryRhino.Conversions import ToNative, ToSpeckle
from SpeckleCore import SpeckleObject, SpeckleAbstract
brep_speckle_json_string = json.loads(S)
brep_speckle = SpeckleObject.FromJson(brep_speckle_json_string)
brep = ToNative(brep_speckle)
B = brep

I see… actually there’s no way to do that at the moment i’m afraid, without some potential hacking (I would try in a c# script to call JsonConvert.Deserialize<SpeckleBrep>(your_json_string);, including all the required references of course - core, geometry kit and newtonsoft.

I’ve added an issue & logged it in our roadmap: https://github.com/orgs/speckleworks/projects/6#card-32782414

Hello @dimitrie , seems the py code above works for me… (with referencing a few speckle DLL of course) And I have verified it because the geometry deserialised and appears in rhino. Would you like me to send over my example GH script?

If it’s not a problem, yes, as the issue is linked to this discussion, so it will help!

I have emailed your arup account with a link.