# Web

**URL:** https://discourse.vtk.org/c/web/9.md?page=3

[Latest](https://discourse.vtk.org/latest.md) · [Categories](https://discourse.vtk.org/categories.md) · [Tags](https://discourse.vtk.org/tags.md)

**Page:** 4

---

## [Shell creation for solid using thickness and cell dimension](https://discourse.vtk.org/t/shell-creation-for-solid-using-thickness-and-cell-dimension/15360)

<div class="topic-metadata">

**Author:** [@Adharsh](https://discourse.vtk.org/u/Adharsh)\
**Replies:** 1\
**Last updated:** [March 10, 2025, 12:52pm UTC](https://discourse.vtk.org/t/shell-creation-for-solid-using-thickness-and-cell-dimension/15360 "2025-03-10T12:52:29Z")

</div>

Here, i’m looking for shell creation for solid or geometry by passing thickness and dimension of cell as parameter and i need an hollow shell only. is there any possibilites to acheive this in vtk.js or in some other li…

---

## [vtk.js AxesActor](https://discourse.vtk.org/t/vtk-js-axesactor/11884)

<div class="topic-metadata">

**Author:** [@alexDrinkwater](https://discourse.vtk.org/u/alexDrinkwater)\
**Replies:** 10\
**Last updated:** [March 7, 2025, 11:07am UTC](https://discourse.vtk.org/t/vtk-js-axesactor/11884 "2025-03-07T11:07:27Z")

</div>

I’m trying to utilize AxesActor in vtk.js to show an axes triad similar to paraview, the documentation states “the user can set the text for the three axes.” however I don’t see any methods to set the text in the documen…

---

## [Hide edges in 3d](https://discourse.vtk.org/t/hide-edges-in-3d/15227)

<div class="topic-metadata">

**Author:** [@Javi-r](https://discourse.vtk.org/u/Javi-r)\
**Replies:** 18\
**Last updated:** [February 14, 2025, 11:35am UTC](https://discourse.vtk.org/t/hide-edges-in-3d/15227 "2025-02-14T11:35:16Z")

</div>

I want to know how to hide the edges (triangles) in 3D. How can I do it ? Also, is there any way to activate antialasing ? This is what it looks like now This is what I would like to get To be viewed without the …

---

## [Transitioning from VTK WASM to VTK WebGPU & WebGPU API Deprecation Issue in VTK 9.4.0](https://discourse.vtk.org/t/transitioning-from-vtk-wasm-to-vtk-webgpu-webgpu-api-deprecation-issue-in-vtk-9-4-0/15268)

<div class="topic-metadata">

**Author:** [@yarenakin](https://discourse.vtk.org/u/yarenakin)\
**Replies:** 2\
**Last updated:** [February 13, 2025, 2:07pm UTC](https://discourse.vtk.org/t/transitioning-from-vtk-wasm-to-vtk-webgpu-webgpu-api-deprecation-issue-in-vtk-9-4-0/15268 "2025-02-13T14:07:51Z")

</div>

Hello everyone, I am currently using VTK with WASM in my project, and I am considering transitioning to VTK WebGPU in the future. My main concern is whether this transition would be straightforward or if there are major…

---

## [CMake flags that are used for vtk-wasm-sdk?](https://discourse.vtk.org/t/cmake-flags-that-are-used-for-vtk-wasm-sdk/15259)

<div class="topic-metadata">

**Author:** [@Sophonet](https://discourse.vtk.org/u/Sophonet)\
**Replies:** 3\
**Last updated:** [February 11, 2025, 5:56pm UTC](https://discourse.vtk.org/t/cmake-flags-that-are-used-for-vtk-wasm-sdk/15259 "2025-02-11T17:56:42Z")

</div>

Hi, after switching from SDL2-based wasm of VTK 9.3.1 to WebAssembly-based functionality in 9.4.1 (or the current main branch), I have noticed that my own compiled WASM app runs magnitudes slower compared to a build wit…

---

## [How WW/WL and ColorTransferFunction influence the visilization of the image.](https://discourse.vtk.org/t/how-ww-wl-and-colortransferfunction-influence-the-visilization-of-the-image/15258)

<div class="topic-metadata">

**Author:** [@iris\_Li](https://discourse.vtk.org/u/iris_Li)\
**Replies:** 4\
**Last updated:** [February 11, 2025, 12:06am UTC](https://discourse.vtk.org/t/how-ww-wl-and-colortransferfunction-influence-the-visilization-of-the-image/15258 "2025-02-11T00:06:00Z")

</div>

I set both ww/wl and ColorTransferFunction for a image property. I find when I adjust the ww/wl by mouse the appearence of the image change. I want to know the underline math of WW/WL and the ColorTransferFunction. Thank…

---

## [Cross axes of ResliceCursorWidget](https://discourse.vtk.org/t/cross-axes-of-reslicecursorwidget/15253)

<div class="topic-metadata">

**Author:** [@Javi-r](https://discourse.vtk.org/u/Javi-r)\
**Replies:** 1\
**Last updated:** [February 10, 2025, 12:06pm UTC](https://discourse.vtk.org/t/cross-axes-of-reslicecursorwidget/15253 "2025-02-10T12:06:11Z")

</div>

How can I make the axes of ResliceCursorWidget cross in vtk.js v32.9.1 ? In previous versions they did it by default but now they do not. Now it looks like this v32.9.1 I want it to look like this with the axes cro…

---

## [VTK WASM with Threading enabled: Rendering not possible in main thread?](https://discourse.vtk.org/t/vtk-wasm-with-threading-enabled-rendering-not-possible-in-main-thread/15191)

<div class="topic-metadata">

**Author:** [@Sophonet](https://discourse.vtk.org/u/Sophonet)\
**Replies:** 1\
**Last updated:** [February 3, 2025, 5:00pm UTC](https://discourse.vtk.org/t/vtk-wasm-with-threading-enabled-rendering-not-possible-in-main-thread/15191 "2025-02-03T17:00:41Z")

</div>

Hi all, in my VTK WASM app, I recently wanted to explore whether rendering can be accelerated by turning on threading. My plan was to keep rendering in the main thread, just to make it faster for multi-threaded renderin…

---

## [Web app for visualizing geophysical data](https://discourse.vtk.org/t/web-app-for-visualizing-geophysical-data/15223)

<div class="topic-metadata">

**Author:** [@spasquet](https://discourse.vtk.org/u/spasquet)\
**Replies:** 1\
**Last updated:** [January 29, 2025, 8:57pm UTC](https://discourse.vtk.org/t/web-app-for-visualizing-geophysical-data/15223 "2025-01-29T20:57:57Z")

</div>

Hi there, I’m trying to develop a web application for visualizing 3D geophysical data. This data would be either in form of .vtk profiles, or .tiff maps. I created a basic example using pyvista (and trame in the backgr…

---

## [@kitware/vtk.js + Jest = Cannot use import statement outside a module](https://discourse.vtk.org/t/kitware-vtk-js-jest-cannot-use-import-statement-outside-a-module/6012)

<div class="topic-metadata">

**Author:** [@FezVrasta](https://discourse.vtk.org/u/FezVrasta)\
**Replies:** 7\
**Last updated:** [January 28, 2025, 4:30pm UTC](https://discourse.vtk.org/t/kitware-vtk-js-jest-cannot-use-import-statement-outside-a-module/6012 "2025-01-28T16:30:37Z")

</div>

Hi, I’m trying to write some Jest tests on a Create React App project, but when I try to import any @kitware/vtk.js module and run my Jest tests I get the following error: Cannot use import statement outside a module …

---

## [Question about RelativeCoincidentTopology\*OffsetParameters](https://discourse.vtk.org/t/question-about-relativecoincidenttopology-offsetparameters/15192)

<div class="topic-metadata">

**Author:** [@Xoz](https://discourse.vtk.org/u/Xoz)\
**Replies:** 5\
**Last updated:** [January 27, 2025, 7:56am UTC](https://discourse.vtk.org/t/question-about-relativecoincidenttopology-offsetparameters/15192 "2025-01-27T07:56:56Z")

</div>

Hi everyone, I’ve met a problem when trying to adjust two mesh display order. In the past I just use setRelativeCoincidentTopologyPolygonOffsetParameters and setRelativeCoincidentTopologyLineOffsetParameters to set the …

---

## [Vtk.js unstructured grid](https://discourse.vtk.org/t/vtk-js-unstructured-grid/13513)

<div class="topic-metadata">

**Author:** [@antonskrebkov](https://discourse.vtk.org/u/antonskrebkov)\
**Replies:** 15\
**Last updated:** [January 21, 2025, 4:56am UTC](https://discourse.vtk.org/t/vtk-js-unstructured-grid/13513 "2025-01-21T04:56:11Z")

</div>

Hello! Can vtk.js render unstructured grid data independently (i.e., without relying on vtk python as a backend or another tools beyond the scope of vtk.js)? If not, are there any plans to add this capability? Thank y…

---

## [How to Completely Remove vtkFullScreenRenderWindow Rendering Before Page Navigation in React?](https://discourse.vtk.org/t/how-to-completely-remove-vtkfullscreenrenderwindow-rendering-before-page-navigation-in-react/15167)

<div class="topic-metadata">

**Author:** [@DMK](https://discourse.vtk.org/u/DMK)\
**Replies:** 3\
**Last updated:** [January 20, 2025, 10:16pm UTC](https://discourse.vtk.org/t/how-to-completely-remove-vtkfullscreenrenderwindow-rendering-before-page-navigation-in-react/15167 "2025-01-20T22:16:16Z")

</div>

Hello I am currently working on a React project where I use VTK to display medical images. I am able to visualize my images successfully, but since I use vtkFullScreenRenderWindow, the rendering window creates a new div …

---

## [Trame app failing to load from Docker container due to \`\_\_trame\_vtklocal/js/style.css\`](https://discourse.vtk.org/t/trame-app-failing-to-load-from-docker-container-due-to-trame-vtklocal-js-style-css/15169)

<div class="topic-metadata">

**Author:** [@kbhasin](https://discourse.vtk.org/u/kbhasin)\
**Replies:** 4\
**Last updated:** [January 20, 2025, 6:23pm UTC](https://discourse.vtk.org/t/trame-app-failing-to-load-from-docker-container-due-to-trame-vtklocal-js-style-css/15169 "2025-01-20T18:23:36Z")

</div>

Hi there, First of all, thank you for all the great projects for handling and using meshes in all their various forms - they continue to be super helpful. I am in the process of creating a “simple” mesh visualisation a…

---

## [Error in vtkGenericRenderWindow for vtk.js](https://discourse.vtk.org/t/error-in-vtkgenericrenderwindow-for-vtk-js/15154)

<div class="topic-metadata">

**Author:** [@h4rry](https://discourse.vtk.org/u/h4rry)\
**Replies:** 2\
**Last updated:** [January 15, 2025, 11:56pm UTC](https://discourse.vtk.org/t/error-in-vtkgenericrenderwindow-for-vtk-js/15154 "2025-01-15T23:56:14Z")

</div>

Hi, i’m trying to use vtk.js with vue.js for 2D visualisation of 3D volumes. I tried calling vtkGenericRenderWindow.newInstance() in the onMounted hook of my component, but it would throw this error from inside the vtk.j…

---

## [Performance drop after usage (wslink + vtk)](https://discourse.vtk.org/t/performance-drop-after-usage-wslink-vtk/15038)

<div class="topic-metadata">

**Author:** [@joaomlap](https://discourse.vtk.org/u/joaomlap)\
**Replies:** 6\
**Last updated:** [January 15, 2025, 8:29pm UTC](https://discourse.vtk.org/t/performance-drop-after-usage-wslink-vtk/15038 "2025-01-15T20:29:31Z")

</div>

Hi again :slight\_smile: I am building a web application with wslink + vtk (python wrapper). I am rendering a fairly big model on the server, everything starts smooth and the model renders correctly with an acceptable n…

---

## [how to use trame](https://discourse.vtk.org/t/how-to-use-trame/10855)

<div class="topic-metadata">

**Author:** [@jane](https://discourse.vtk.org/u/jane)\
**Replies:** 10\
**Last updated:** [December 30, 2024, 6:34pm UTC](https://discourse.vtk.org/t/how-to-use-trame/10855 "2024-12-30T18:34:08Z")

</div>

Hello! How to implement multi-user problems with the TRARE framework. Note that for multi-users you need to use and configure a launcher.

---

## [Rendering a .vtu file using vtk-js with React](https://discourse.vtk.org/t/rendering-a-vtu-file-using-vtk-js-with-react/13934)

<div class="topic-metadata">

**Author:** [@iponisio](https://discourse.vtk.org/u/iponisio)\
**Replies:** 3\
**Last updated:** [January 2, 2025, 4:06pm UTC](https://discourse.vtk.org/t/rendering-a-vtu-file-using-vtk-js-with-react/13934 "2025-01-02T16:06:03Z")

</div>

Hi, I’m following this tutorial, slightly modifying it in the attempt to render a mesh we’ve created using gmsh and converted into a .vtu format. I’ve got a pseudo-API running on localhost that serves statically the XM…

---

## [vtkUnstructuredGrid (.vtu data) with vtkJS](https://discourse.vtk.org/t/vtkunstructuredgrid-vtu-data-with-vtkjs/3549)

<div class="topic-metadata">

**Author:** [@felixHub](https://discourse.vtk.org/u/felixHub)\
**Replies:** 6\
**Last updated:** [January 2, 2025, 4:03pm UTC](https://discourse.vtk.org/t/vtkunstructuredgrid-vtu-data-with-vtkjs/3549 "2025-01-02T16:03:16Z")

</div>

Hi, I’m developing a web app using vtkjs, but I need to work with vtkUnstructurerdGrid data. I’ve already tried the readers available in vtkjs repo, but they seems don’t work. Can someone help me ?

---

## [Based on the ImageCPRMapper example, get a screenshot of the cross section of the blood vessel at a central point](https://discourse.vtk.org/t/based-on-the-imagecprmapper-example-get-a-screenshot-of-the-cross-section-of-the-blood-vessel-at-a-central-point/14390)

<div class="topic-metadata">

**Author:** [@flourishing](https://discourse.vtk.org/u/flourishing)\
**Replies:** 14\
**Last updated:** [January 2, 2025, 9:48am UTC](https://discourse.vtk.org/t/based-on-the-imagecprmapper-example-get-a-screenshot-of-the-cross-section-of-the-blood-vessel-at-a-central-point/14390 "2025-01-02T09:48:51Z")

</div>

Hey vtk community, according to the ImageCPRMapper example, how do I get a screenshot of the cross section of the blood vessel at this center point based on the point of the center line of the blood vessel, and a cross …

---

## [VTK JS Image Slicing basics](https://discourse.vtk.org/t/vtk-js-image-slicing-basics/4739)

<div class="topic-metadata">

**Author:** [@kit](https://discourse.vtk.org/u/kit)\
**Replies:** 6\
**Last updated:** [January 2, 2025, 8:50am UTC](https://discourse.vtk.org/t/vtk-js-image-slicing-basics/4739 "2025-01-02T08:50:40Z")

</div>

Hi, I was experimenting with the image slicing example which are really nice btw. But if I change mapper.setSlicingMode(SlicingMode.Z) to mapper.setSlicingMode(SlicingMode.Y) The rendered image disappears (no er…

---

## [Trying to view vtu or vtk file in the web](https://discourse.vtk.org/t/trying-to-view-vtu-or-vtk-file-in-the-web/14938)

<div class="topic-metadata">

**Author:** [@sridhar-mani](https://discourse.vtk.org/u/sridhar-mani)\
**Replies:** 8\
**Last updated:** [December 31, 2024, 5:35pm UTC](https://discourse.vtk.org/t/trying-to-view-vtu-or-vtk-file-in-the-web/14938 "2024-12-31T17:35:00Z")

</div>

I have been trying to view vtk or vtu file in web but unable to do so as only vtp seems to be supported.

---

## [Failed to load data when use setFormulaSimple in vtkCalculator](https://discourse.vtk.org/t/failed-to-load-data-when-use-setformulasimple-in-vtkcalculator/15090)

<div class="topic-metadata">

**Author:** [@1116](https://discourse.vtk.org/u/1116)\
**Replies:** 1\
**Last updated:** [December 31, 2024, 2:37pm UTC](https://discourse.vtk.org/t/failed-to-load-data-when-use-setformulasimple-in-vtkcalculator/15090 "2024-12-31T14:37:51Z")

</div>

Hi, dear vtk.js experts： I try to learn how to use vtkCalculator, this is example html code using setFormularSimple for testing: \<!DOCTYPE html\> \<html lang="en"\> \<head\> \<meta charset="UTF-8"\> \<meta name="viewp…

---

## [Failed to execute 'texSubImage2D' on 'WebGL2RenderingContext': Tainted canvases may not be loaded](https://discourse.vtk.org/t/failed-to-execute-texsubimage2d-on-webgl2renderingcontext-tainted-canvases-may-not-be-loaded/15089)

<div class="topic-metadata">

**Author:** [@1116](https://discourse.vtk.org/u/1116)\
**Replies:** 0\
**Last updated:** [December 29, 2024, 11:45am UTC](https://discourse.vtk.org/t/failed-to-execute-texsubimage2d-on-webgl2renderingcontext-tainted-canvases-may-not-be-loaded/15089 "2024-12-29T11:45:13Z")

</div>

Hi, vtk.js experts: I try to learn how to use vtkOBJReader, and this is my html code for testing. I write this code based on online exmaple ( vtk.js) \<!DOCTYPE html\> \<html lang="en"\> \<head\> \<meta charset="UTF-8"\> …

---

## [Increase volume rotation speed when using wslink library](https://discourse.vtk.org/t/increase-volume-rotation-speed-when-using-wslink-library/15044)

<div class="topic-metadata">

**Author:** [@dbtruong](https://discourse.vtk.org/u/dbtruong)\
**Replies:** 1\
**Last updated:** [December 20, 2024, 3:37am UTC](https://discourse.vtk.org/t/increase-volume-rotation-speed-when-using-wslink-library/15044 "2024-12-20T03:37:20Z")

</div>

Hello, I am using wslink library to communicate between client and server, and I am using vtkInteractorStyleTrackballCamera class to rotate the server-side rendered volume. I want to ask if there is any other way to mak…

---

## [KitWare VolView Vue project](https://discourse.vtk.org/t/kitware-volview-vue-project/15017)

<div class="topic-metadata">

**Author:** [@LiamErens](https://discourse.vtk.org/u/LiamErens)\
**Replies:** 1\
**Last updated:** [December 19, 2024, 10:43pm UTC](https://discourse.vtk.org/t/kitware-volview-vue-project/15017 "2024-12-19T22:43:35Z")

</div>

Hello, I am wondering if there are any implementations of the following: Rotation of the DICOM Slices, and updating the other slices based on the rotated slice’s crosshair Enhancing image sharpness to assist with artif…

---

## [How to modify the line color of LineWidget？](https://discourse.vtk.org/t/how-to-modify-the-line-color-of-linewidget/15042)

<div class="topic-metadata">

**Author:** [@Anultra](https://discourse.vtk.org/u/Anultra)\
**Replies:** 1\
**Last updated:** [December 18, 2024, 2:36pm UTC](https://discourse.vtk.org/t/how-to-modify-the-line-color-of-linewidget/15042 "2024-12-18T14:36:26Z")

</div>

When using LineWidget for line measurement, there is no way to modify the color of the lines, and the colors of rectangles and circles are different from it. How should I handle this issue?

---

## [Is there a way to turn on Debug mode for WSLink protocol messages](https://discourse.vtk.org/t/is-there-a-way-to-turn-on-debug-mode-for-wslink-protocol-messages/15031)

<div class="topic-metadata">

**Author:** [@joaomlap](https://discourse.vtk.org/u/joaomlap)\
**Replies:** 1\
**Last updated:** [December 17, 2024, 5:45pm UTC](https://discourse.vtk.org/t/is-there-a-way-to-turn-on-debug-mode-for-wslink-protocol-messages/15031 "2024-12-17T17:45:07Z")

</div>

On the browser I would like to be able to debug my protocol messages but right now every message is binary which is great for performance but not great for debugging as I would like to understand what is happening. Is t…

---

## [VTK.js WebGL GPU memory](https://discourse.vtk.org/t/vtk-js-webgl-gpu-memory/15020)

<div class="topic-metadata">

**Author:** [@mnk999](https://discourse.vtk.org/u/mnk999)\
**Replies:** 1\
**Last updated:** [December 15, 2024, 7:20pm UTC](https://discourse.vtk.org/t/vtk-js-webgl-gpu-memory/15020 "2024-12-15T19:20:05Z")

</div>

Is there a way to force the renderer to use more memory if it is available to improve interactive performance and decrease degradation? I’m noticing this with a NVIDIA graphics card and its using 1 of 4 dedicated GPU mem…

---

## [Problem when using vtkRemoteView to render slice](https://discourse.vtk.org/t/problem-when-using-vtkremoteview-to-render-slice/14986)

<div class="topic-metadata">

**Author:** [@dbtruong](https://discourse.vtk.org/u/dbtruong)\
**Replies:** 4\
**Last updated:** [December 11, 2024, 1:42am UTC](https://discourse.vtk.org/t/problem-when-using-vtkremoteview-to-render-slice/14986 "2024-12-11T01:42:29Z")

</div>

Hello, I am using the wslink library to communicate websocket between client and server to render slices of a dicom image set. If I create multiple viewports on the interface, the final viewport will look like the image…

[Previous page](https://discourse.vtk.org/c/web/9.md?page=2)

[Next page](https://discourse.vtk.org/c/web/9.md?page=4)
