Distance widget is not rendering

Hello, good day, I’m trying to use the distance widget in a created volume of DICOM files, but I have a problem that i don’t understand, and it is that the distance widget is shown in some studies and in others down, I have been moving every property or method but nothing seems to work, my implementation is very standard.

const initGrabWidget = (objectToGrab, selectedIndex) => {
    const grabWidget = vtkDistanceWidget.newInstance();
    return grabWidget;

const widget = initGrabWidget(api.volumes[0], currentIndex);
handleGrab(widget, currentIndex);

How it looks like when is working

How it looks like when is not working

1 Like