diff --git a/src/ImJoyPluginAPI.js b/src/ImJoyPluginAPI.js index 62a8cc68..60f651bb 100644 --- a/src/ImJoyPluginAPI.js +++ b/src/ImJoyPluginAPI.js @@ -65,6 +65,11 @@ class ImJoyPluginAPI { } } + addPointSet(pointSet) { + let points = itkVtkViewer.utils.ndarrayToPointSet(pointSet) + this.viewer.addPointSet(points) + } + async captureImage() { return await this.viewer.captureImage() }