You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I receive the following error in OHIF: ViewerMain: Cannot read properties of null (reading 'isAttributeUsed'), this is the snippet of code throwing the error in index.js:
if (program.isAttributeUsed('vertexDC')) {
if (
!cellBO
.getVAO()
.addAttributeArray(
program,
cellBO.getCABO(),
'vertexDC',
cellBO.getCABO().getVertexOffset(),
cellBO.getCABO().getStride(),
model.context.FLOAT,
3,
model.context.FALSE
)
) {
vtkErrorMacro('Error setting vertexDC in shader VAO.');
}
}
Does anyone know what I am doing wrong?
The text was updated successfully, but these errors were encountered:
I am trying to expand upon the functionality shown in this example https://react-vtkjs-viewport.netlify.app/painting to have more functionality and options like in this example https://kitware.github.io/vtk-js/examples/PaintWidget.html
I can import, and instantiate the wdigets like so:
but when I replace paintWidget with rectangleWidget when adding a widget to the widgetManager like this:
I receive the following error in OHIF:
ViewerMain: Cannot read properties of null (reading 'isAttributeUsed')
, this is the snippet of code throwing the error in index.js:Does anyone know what I am doing wrong?
The text was updated successfully, but these errors were encountered: