cornerstonejs / cornerstone3D

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.
https://cornerstonejs.org
MIT License
472 stars 249 forks source link

[Bug] The example of contourrendering cannot display contours on 3D #1343

Open IrvingLu opened 1 week ago

IrvingLu commented 1 week ago

Describe the Bug

The example of contourrendering cannot display contours on 3D saw that the code for this example removed the 3D display, and I don't understand why it was removed. When I try to display the outline, I will report the following error:

undefined is not iterable (cannot read property Symbol(Symbol.iterator)) TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) at Function.from () at updateContourSets (http://localhost:3000/tutorial.js:136362:41) at handleContourSegmentation (http://localhost:3000/tutorial.js:136332:3) at Object.render (http://localhost:3000/tutorial.js:136241:105) at http://localhost:3000/tutorial.js:137342:44 at Array.map () at SegmentationDisplayTool.renderSegmentation (http://localhost:3000/tutorial.js:137327:75) at SegmentationRenderingEngine._triggerRender (http://localhost:3000/tutorial.js:156046:37) at http://localhost:3000/tutorial.js:155922:14

Steps to Reproduce

Use the latest version

The current behavior

The example of contourrendering cannot display contours on 3D

The expected behavior

Display contours on 3D

OS

windows10

Node version

1.61.5

Browser

Chrome

sedghi commented 1 week ago

It was not removed really you still can render contour in 3D. if it does not work it is a bug, but for 2D rendering of contours you have to use the new svg based contour rendering

IrvingLu commented 6 days ago

Thank you for your reply. It is indeed not working. I have updated it to the latest version and now it is reporting the following error: 20240701-135239

sedghi commented 2 days ago

Can we take a step back? Please explain your use case. Why do you want to render contours in the 3D volume rendering?