Size Of VTK Render Window Will Not Match The External Canvas

I found an interesting issue about vtkSDL2OpenGLRenderWindow::SetSize when changed canvas for VTK WASM 3D window.The related post on the website is Change Canvas For VTK WASM Project. The interface SetSize can work if it was used before m_RenderWindowInteractor->SetRenderWindow( newWin );.It means the 3D window will become smaller or bigger than the outer shell. The red object Read more…

Explain Code
: explain the code you input to help you to understand it.

X