@acransac/vtk.js
Version:
Visualization Toolkit for the Web
2 lines (1 loc) • 381 B
Markdown
This example convert a JSON structure into an actual vtk class hierarchy. The JSON file that get loaded can be seen [here](https://github.com/Kitware/vtk-js/blob/master/Sources/Testing/Examples/ActorSerialization/example/actor.json) while the `vtk()` function expect an actual object not a String so you may need to convert a JSON string via the `JSON.parse(string)` method first.