Why Does The Canvas Id On HTML Page Have To Be `canvas` For VTK WebAssembly?

I got the following error information on the web page if I change the id of canvas to be ‘canvas1’. The function USDL2OpenGLRenderWindow::CreateAWindow is similar to vtkSDL2OpenGLRenderWindow::CreateAWindow. We can read VTK and SDL library source code and find these code snippets. File: video\emscripten\SDL_emscriptenvideo.c device->CreateSDLWindow = Emscripten_CreateWindow; static int Emscripten_CreateWindow(_THIS, SDL_Window Read more…

Make vtkContourWidget Object Work On Webassembly Page

I had found a crash bug when use vtkContourWidget by webassembly in the post Crash Bug About vtkOpenGLPolyDataMapper::UpdateShaders In vtkAbstractWidget.As we know, SetResolveCoincidentTopologyToPolygonOffset for mapper can make web page crash, related post: The Interfaces In VTK Can’t Be Used With Webassembly. After reading the source code of vtkOrientedGlyphContourRepresentation::vtkOrientedGlyphContourRepresentation(), we know Read more…

Tex To PDF
: convert the Latex file which suffix is tex to a PDF file

X