VTK WASM Error – Cannot read properties of null (reading ‘bindRenderbuffer’) at _glBindRenderbuffer

Sometimes we need to change canvas for VTK WASM 3D window.Updating renderer window and renderer is neccessary if we don’t restart all data loading.The related post is Change Canvas For VTK WASM Project. I got the following error info on the web page if do vtkSDL2OpenGLRenderWindow::Render before m_RenderWindow = newWin; (update the old rendererWindow variable). Read more…

Debug C/C++ WebAssembly On Chrome

Test environment: Ubuntu 22.04.2 LTSGoogle Chromeemcc 3.1.33clang version 17.0.0Target: wasm32-unknown-emscripten Write a simple test program. main.c: Compile it with DWARF debug information included. Download chrome (stable version): https://www.google.com/chrome/ Install chrome on ubuntu. Set up a light http server for viewing it on chrome. Then open the web page at http://0.0.0.0:4001/main.html Read more…

Change Canvas For VTK WASM Project

The post demonstrates the process of configuring the 3D window after switching from the original canvas to another. After clicking on the update button at the bottom-left position on the webpage, we will call Worker::ChangeRenderWindow to handle the scene. index.html: The interface in worker.cpp: The whole project had been uploaded Read more…

3D Model Editor – Remove Non-monifold Edges And Non-monifold Points

We have added a new feature to the 3D Model Editor. It can remove non-monifold edges and non-monifold points. The non-monifold edges and non-monifold points are introduced at https://www.weiy.city/2022/09/3d-model-editor-find-non-manifold-edge-and-points/. Let’s create a cube with non-monifold edges and non-monifold points by the following code. The model file had been uploaded to Read more…

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

X