Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geometry round trip not possibly #11

Open
DharmanGersch opened this issue Feb 22, 2022 · 1 comment
Open

Geometry round trip not possibly #11

DharmanGersch opened this issue Feb 22, 2022 · 1 comment

Comments

@DharmanGersch
Copy link

It's really nice that jSwan casts to json, and it's so easy 🥇 I even often find myself telling other people how good it is, and that you can even serialize grasshopper geometry! 👏
image

And then i realize that i have to deserialize the geometry again at some point and it's not quite as convenient. In fact it's a little overwhelming 😧
image
And the binary geometry data is mysteriously inaccessible... 🔒

My dream is for DeJson to work like this
image
or even to directly return the geometry, but this would probably disrupt other uses.

Have you considered allowing the binary archive to cast to geometry? and the GH parameters to cast to their types? Even just simple types like points, vectors planes and polylines would be really convenient. Is this even possible? Because jswan is passing text around would this not be possible? the GeometryGym Revit add-in casts custom classes to breps with the native brep param.

image

If you think this is worthwhile or a possible direction i'd love to contribute and put in a PR 🤝

@jackwalkernz
Copy link

https://discourse.mcneel.com/t/json-deserialization-in-rhinocommon/91984/5
After some poking around, it looks like there is an answer located here ☝️ .... but I am not sure if @andrewheumann has implemented this or not, or if there are limitations to this approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants