CPP – Don’t append `\x00` to std::string
Record an experience of debugging. Here are two ways to read string and store it in std::string.One will have ‘\x00’ in std::string object, the other has not.
Record an experience of debugging. Here are two ways to read string and store it in std::string.One will have ‘\x00’ in std::string object, the other has not.
Displays some images generated by stable diffusion, they are all about American anime character Tom Cat. The related Lora model was trained by the webmaster personally. Demo images:If you are a Chinese internet user, some images might not be viewable Read more…
Displays some images generated by stable diffusion, they are all about the abstract art for universe, the resolution of these images is 512×900 pixels. Demo images:If you are a Chinese internet user, some images might not be viewable due to Read more…
Displays some images generated by stable diffusion, they are all about a cute with long ponytails sitting above water surface, the resolution of these images is 512×900 pixels. Demo images:If you are a Chinese internet user, some images might not Read more…
Displays some images generated by stable diffusion, they are all about a cute girl with red outfit and long ponytails, the resolution of these images is 560×984 pixels. Demo images:If you are a Chinese internet user, some images might not Read more…
We have added a zoom function to the illustrations of the articles on our website. For scenarios where the image size itself is already large, when you move the cursor over the image, the zoom will take effect, allowing users Read more…
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 Read more…
There are some errors and warnings after I changed canvas for VTK wasm. The related post: https://www.weiy.city/2023/11/change-canvas-for-vtk-wasm-project/ We need to free up graphics resources with the old window before we render again. worker.cpp:
Environment:VTK Branch_v9.1.0emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.39 I tested two interfaces for pick operation of vtkPropPicker on web page. The result value is awalys 0. Invoking code: There are warning on browser log: Maybe that’s a Read more…