Hi Knut,
I was not aware of these changes. I will have a look.
Adding the version number to the JSON file is a great idea - thanks for the hint!
– Clemens
I have found two files where I can show you an important difference in the Mesh object in the json
On the left you see the old structure (which we like), and on the right you see the new structure. I can’t tell you for certain from exactly which version this started occurring, but it could be from 2.2.0.15.
I have also attached these two jsons.
Hi Knut,
yes, the serialization of Mesh3-objects changed in the latest build of Karamba3D to make it more performant. Instead of lists arrays are used to read and write data. Here the constructor for reading from Json:
In the upcoming service release of Karamba3D V 2.3. the Json data of models contains the entry “Version”. The corresponding string is the version of Karamba3D with which the Json file was generated.
– Clemens
Hi Knut,
in the future I plan to remove all references to .NET-classes in the JSON-file if possible, so that it is easier to import/export a K3D model in Python or Java.
There will be a prerelease of Karamba3D 3.0 in the coming weeks on Github (see here)
– Clemens