# Latest

**URL:** https://discourse.vtk.org/latest.md?page=130

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

**Page:** 131

---

## [How to get the intersection between two splines?](https://discourse.vtk.org/t/how-to-get-the-intersection-between-two-splines/8633)

<div class="topic-metadata">

**Author:** [@Jaafar\_Nasrabadi](https://discourse.vtk.org/u/Jaafar_Nasrabadi)\
**Replies:** 0\
**Last updated:** [May 30, 2022, 7:42pm UTC](https://discourse.vtk.org/t/how-to-get-the-intersection-between-two-splines/8633 "2022-05-30T19:42:50Z")

</div>

I am trying to get intersections between two splines.I convert the splines to tube then use vtktrianglefilter and then get the intersection with vtkintersectionpolydatafilter. I want to get intersection points respective…

---

## [Setting up Center of Mass on Prop3d object without moving the object](https://discourse.vtk.org/t/setting-up-center-of-mass-on-prop3d-object-without-moving-the-object/8559)

<div class="topic-metadata">

**Author:** [@Marone](https://discourse.vtk.org/u/Marone)\
**Replies:** 1\
**Last updated:** [May 30, 2022, 10:09am UTC](https://discourse.vtk.org/t/setting-up-center-of-mass-on-prop3d-object-without-moving-the-object/8559 "2022-05-30T10:09:31Z")

</div>

I am trying to set a centre of mass with SetOrientation() function and then apply RotationWXYZ() on the object. The thing is when I use SetOrientation on the object it moves it. I only want to set centre of mass around w…

---

## [I set the widgetFactory manipulator plane to use the camera normal, I want to get this normal through getNormal, how do I do it](https://discourse.vtk.org/t/i-set-the-widgetfactory-manipulator-plane-to-use-the-camera-normal-i-want-to-get-this-normal-through-getnormal-how-do-i-do-it/8628)

<div class="topic-metadata">

**Author:** [@654545342](https://discourse.vtk.org/u/654545342)\
**Replies:** 2\
**Last updated:** [May 30, 2022, 8:28am UTC](https://discourse.vtk.org/t/i-set-the-widgetfactory-manipulator-plane-to-use-the-camera-normal-i-want-to-get-this-normal-through-getnormal-how-do-i-do-it/8628 "2022-05-30T08:28:45Z")

</div>

I set useCameraNormal, I need to get it somewhere, using getNormal, what should be passed in the calldata parameter? How can I get the normals of this widgetFactory

---

## [Accurately cutting loops out of 3D PolyData](https://discourse.vtk.org/t/accurately-cutting-loops-out-of-3d-polydata/8625)

<div class="topic-metadata">

**Author:** [@whophil](https://discourse.vtk.org/u/whophil)\
**Replies:** 0\
**Last updated:** [May 29, 2022, 9:19pm UTC](https://discourse.vtk.org/t/accurately-cutting-loops-out-of-3d-polydata/8625 "2022-05-29T21:19:34Z")

</div>

I am trying to accurately cut loops out of a 3D PolyData with a loop which lies on the surface (or very close to it). Similar topics have been discussed a number of times before: Punching a polygonal hole into a trian…

---

## [How can I change the line colour in vtkResliceCursorWidget and vtkLineWidget ?](https://discourse.vtk.org/t/how-can-i-change-the-line-colour-in-vtkreslicecursorwidget-and-vtklinewidget/7753)

<div class="topic-metadata">

**Author:** [@Javi-r](https://discourse.vtk.org/u/Javi-r)\
**Replies:** 3\
**Last updated:** [May 29, 2022, 11:50pm UTC](https://discourse.vtk.org/t/how-can-i-change-the-line-colour-in-vtkreslicecursorwidget-and-vtklinewidget/7753 "2022-05-29T23:50:11Z")

</div>

How can I change the colour of the line in vtkLineWidget ? How can I change the colour of the lines in vtkResliceCursorWidget ?

---

## [How to color 3D model according to magnitude of specific column ?](https://discourse.vtk.org/t/how-to-color-3d-model-according-to-magnitude-of-specific-column/8588)

<div class="topic-metadata">

**Author:** [@graysuit](https://discourse.vtk.org/u/graysuit)\
**Replies:** 3\
**Last updated:** [May 29, 2022, 5:36pm UTC](https://discourse.vtk.org/t/how-to-color-3d-model-according-to-magnitude-of-specific-column/8588 "2022-05-29T17:36:09Z")

</div>

The paraview has ability to get no. of columns in file and then can color each column according to magnitude we specify. The color range is what we specify in scale. Please see screenshots: I want to do this C# us…

---

## [build VTK-9.1.0 to webassembly](https://discourse.vtk.org/t/build-vtk-9-1-0-to-webassembly/7895)

<div class="topic-metadata">

**Author:** [@reichtiger](https://discourse.vtk.org/u/reichtiger)\
**Replies:** 8\
**Last updated:** [May 29, 2022, 1:05pm UTC](https://discourse.vtk.org/t/build-vtk-9-1-0-to-webassembly/7895 "2022-05-29T13:05:11Z")

</div>

Hello, Nice to update to VTK-9.1.0 on Windows11 . But when I compile it via dockcross/web-wasm:20220202, it raise error like below :wink: /VTK-9.1.0/Rendering/ContextOpenGL2/vtkOpenGLContextBufferId.cxx:142:21: error:…

---

## [VTK9/OSMesa21/LLVM12 MacOS Crash](https://discourse.vtk.org/t/vtk9-osmesa21-llvm12-macos-crash/8545)

<div class="topic-metadata">

**Author:** [@Spacetracker](https://discourse.vtk.org/u/Spacetracker)\
**Replies:** 2\
**Last updated:** [May 27, 2022, 9:24pm UTC](https://discourse.vtk.org/t/vtk9-osmesa21-llvm12-macos-crash/8545 "2022-05-27T21:24:22Z")

</div>

I have built several generations of VTK with OSMesa for offscreen rendering on Linux servers, and several versions of VTK on MacOS for Cocoa from source over the years. I recently built VTK with the latest versions abov…

---

## [Need help with volume rendering Preset](https://discourse.vtk.org/t/need-help-with-volume-rendering-preset/8587)

<div class="topic-metadata">

**Author:** [@gzt036](https://discourse.vtk.org/u/gzt036)\
**Replies:** 3\
**Last updated:** [May 27, 2022, 6:48pm UTC](https://discourse.vtk.org/t/need-help-with-volume-rendering-preset/8587 "2022-05-27T18:48:40Z")

</div>

In presets.js it has a collection of parameters to be used to create a 3D actor by calling applyPreset(actor, preset); My question is how to adjust these parameters to make a proper 3D volume rendering. For example, th…

---

## [How to get VTK headers from VTK\_LIBRARIES returned by cmake find\_package()?](https://discourse.vtk.org/t/how-to-get-vtk-headers-from-vtk-libraries-returned-by-cmake-find-package/8608)

<div class="topic-metadata">

**Author:** [@Tomasso](https://discourse.vtk.org/u/Tomasso)\
**Replies:** 4\
**Last updated:** [May 27, 2022, 6:22pm UTC](https://discourse.vtk.org/t/how-to-get-vtk-headers-from-vtk-libraries-returned-by-cmake-find-package/8608 "2022-05-27T18:22:06Z")

</div>

I’m running cmake version 3.23.0-rc1, on ubuntu 20.04. I built vtk-9.0 from source; cmake, make, then ‘make install’. Now I am trying to find the VTK package for my own application, using cmake’s find\_package(VTK). The a…

---

## [How to fit only parts of actor When fit window](https://discourse.vtk.org/t/how-to-fit-only-parts-of-actor-when-fit-window/8609)

<div class="topic-metadata">

**Author:** [@Ren](https://discourse.vtk.org/u/Ren)\
**Replies:** 0\
**Last updated:** [May 27, 2022, 2:30am UTC](https://discourse.vtk.org/t/how-to-fit-only-parts-of-actor-when-fit-window/8609 "2022-05-27T02:30:50Z")

</div>

Hello, everyone, How to fit only parts of actor When fit window, the other parts of actor draws with transparent.

---

## [How to understand the time tag in dicom?](https://discourse.vtk.org/t/how-to-understand-the-time-tag-in-dicom/8595)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 7\
**Last updated:** [May 27, 2022, 1:34am UTC](https://discourse.vtk.org/t/how-to-understand-the-time-tag-in-dicom/8595 "2022-05-27T01:34:58Z")

</div>

The dicom provide many time tags, for example: 0008, 0022: Acquisition Date 0008, 0023: Content Date 0008, 002A: Acquisition DateTime 0008, 0032: Acquisition Time 0008, 0033: Content Time In my thought, there are nearl…

---

## [ResliceCursorWidget example initialization problem](https://discourse.vtk.org/t/reslicecursorwidget-example-initialization-problem/8369)

<div class="topic-metadata">

**Author:** [@zhangzhi93](https://discourse.vtk.org/u/zhangzhi93)\
**Replies:** 4\
**Last updated:** [May 26, 2022, 8:19pm UTC](https://discourse.vtk.org/t/reslicecursorwidget-example-initialization-problem/8369 "2022-05-26T20:19:33Z")

</div>

1、During initialization, the default value of vtkAnnotatedCubeActor is +z. It needs to be operated to display normally. How do I refresh the state? 2、In the volume image in the lower right corner, the +z plane is dis…

---

## [Using addActor() function within the latest @kitware/vtk.js](https://discourse.vtk.org/t/using-addactor-function-within-the-latest-kitware-vtk-js/8605)

<div class="topic-metadata">

**Author:** [@olry](https://discourse.vtk.org/u/olry)\
**Replies:** 1\
**Last updated:** [May 26, 2022, 8:16pm UTC](https://discourse.vtk.org/t/using-addactor-function-within-the-latest-kitware-vtk-js/8605 "2022-05-26T20:16:19Z")

</div>

Dear VTK team, could you please clarify whether I indeed cannot pass anything else but vtkActor instance to renderer.addActor() function, in the examples on the website other instances are still used, but this code does…

---

## [How to read the given mesh data in vtk file and write it into obj file format](https://discourse.vtk.org/t/how-to-read-the-given-mesh-data-in-vtk-file-and-write-it-into-obj-file-format/8602)

<div class="topic-metadata">

**Author:** [@KALEEMULLAHJANKHAN](https://discourse.vtk.org/u/KALEEMULLAHJANKHAN)\
**Replies:** 1\
**Last updated:** [May 26, 2022, 1:10pm UTC](https://discourse.vtk.org/t/how-to-read-the-given-mesh-data-in-vtk-file-and-write-it-into-obj-file-format/8602 "2022-05-26T13:10:33Z")

</div>

Hello Team, I have data in mesh vtk file as given below, How can I read and convert it to obj file format. I am just copying some part of the data for convenience. Thanks in advance CELLS 20 70 1 0 1 1 1 2 1 3 1 4 …

---

## [how to rendering volume and transparent polygon together with a correct order?](https://discourse.vtk.org/t/how-to-rendering-volume-and-transparent-polygon-together-with-a-correct-order/8599)

<div class="topic-metadata">

**Author:** [@SnowWindSaveYou](https://discourse.vtk.org/u/SnowWindSaveYou)\
**Replies:** 0\
**Last updated:** [May 26, 2022, 12:56am UTC](https://discourse.vtk.org/t/how-to-rendering-volume-and-transparent-polygon-together-with-a-correct-order/8599 "2022-05-26T00:56:42Z")

</div>

after i set the opacity value for my polygon, the volume will always rendering above the polygon. used vtkPolyDataMapper & vtkGPUVolumeRayCastMapper

---

## [ImageCropFilter incorrect handles](https://discourse.vtk.org/t/imagecropfilter-incorrect-handles/8594)

<div class="topic-metadata">

**Author:** [@emil-peter](https://discourse.vtk.org/u/emil-peter)\
**Replies:** 4\
**Last updated:** [May 25, 2022, 6:46pm UTC](https://discourse.vtk.org/t/imagecropfilter-incorrect-handles/8594 "2022-05-25T18:46:52Z")

</div>

Hi, We’re currently working on upgrading our project from an old version (17.0.0) to the most recent version of vtk. We have a thresholding tool implemented which makes use of the ImageCroppingWidget to render a volume…

---

## [Header files with the same name](https://discourse.vtk.org/t/header-files-with-the-same-name/8549)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 5\
**Last updated:** [May 25, 2022, 1:31pm UTC](https://discourse.vtk.org/t/header-files-with-the-same-name/8549 "2022-05-25T13:31:10Z")

</div>

I am getting a list of files by modules in the VTK source and I note that vtkFilterPolicy.h occurs in both Accelerators\\Vtkm\\DataModeland Accelerators\\Vtkm\\Core. The files only differ in line 20. Out of 2997 headers thi…

---

## [Polydata normals](https://discourse.vtk.org/t/polydata-normals/8550)

<div class="topic-metadata">

**Author:** [@emil-peter](https://discourse.vtk.org/u/emil-peter)\
**Replies:** 3\
**Last updated:** [May 25, 2022, 12:16pm UTC](https://discourse.vtk.org/t/polydata-normals/8550 "2022-05-25T12:16:06Z")

</div>

Hello, I’m currently working on implementing an OBJ writer in vtkjs. I’m able to read out the vertices and faces via: const polys = polyData.getPolys().getData(); const points = polyData.getPoints().getData();…

---

## [Creating a custom docker image for VTKWeb with multi-user support (apache proxy)](https://discourse.vtk.org/t/creating-a-custom-docker-image-for-vtkweb-with-multi-user-support-apache-proxy/8505)

<div class="topic-metadata">

**Author:** [@EMalikova](https://discourse.vtk.org/u/EMalikova)\
**Replies:** 18\
**Last updated:** [May 25, 2022, 12:15pm UTC](https://discourse.vtk.org/t/creating-a-custom-docker-image-for-vtkweb-with-multi-user-support-apache-proxy/8505 "2022-05-25T12:15:55Z")

</div>

Dear All, I have a project that uses the vtk-based multi-user remote visualisation similarly to paravieweb (ParaViewWeb). The concept has been tested and works. So, currently, I am trying to create a custom docker image…

---

## [why the hidden part can be shown when edge visibility is on](https://discourse.vtk.org/t/why-the-hidden-part-can-be-shown-when-edge-visibility-is-on/8584)

<div class="topic-metadata">

**Author:** [@Ren](https://discourse.vtk.org/u/Ren)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 2:29am UTC](https://discourse.vtk.org/t/why-the-hidden-part-can-be-shown-when-edge-visibility-is-on/8584 "2022-05-25T02:29:23Z")

</div>

Hello, I use lookuptable to hide some parts, but if SetEdgeVisibility, the edge of hidden part will be drawn.

---

## [How can i set the length of the linewidget in vtk.js?](https://discourse.vtk.org/t/how-can-i-set-the-length-of-the-linewidget-in-vtk-js/8583)

<div class="topic-metadata">

**Author:** [@Sneha-pk](https://discourse.vtk.org/u/Sneha-pk)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 1:05am UTC](https://discourse.vtk.org/t/how-can-i-set-the-length-of-the-linewidget-in-vtk-js/8583 "2022-05-25T01:05:23Z")

</div>

Hello everyone, I am trying to develop a fixed horizontal line using vtkLineWidget(as i need the functionality to drag it across). I am using the setOrigin() method for both handles to set the length of the line but the…

---

## [Line perpendicular to an edge of a polyline on a plane in 3D](https://discourse.vtk.org/t/line-perpendicular-to-an-edge-of-a-polyline-on-a-plane-in-3d/8581)

<div class="topic-metadata">

**Author:** [@adeelz92](https://discourse.vtk.org/u/adeelz92)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 10:37pm UTC](https://discourse.vtk.org/t/line-perpendicular-to-an-edge-of-a-polyline-on-a-plane-in-3d/8581 "2022-05-24T22:37:05Z")

</div>

I have a plane (red) in 3D, and I have a curve (white) defined by vtkPolyLine which resides on the plane. The plane source is defined by vtkPlane and final plane data is computed by vtkCutter. I want to find a line (yell…

---

## [VTK.JS MultiSliceImageMapper](https://discourse.vtk.org/t/vtk-js-multisliceimagemapper/8580)

<div class="topic-metadata">

**Author:** [@Sohrab\_Azami](https://discourse.vtk.org/u/Sohrab_Azami)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 7:34pm UTC](https://discourse.vtk.org/t/vtk-js-multisliceimagemapper/8580 "2022-05-24T19:34:41Z")

</div>

Hi VTK Support, I am trying out the vtk.js recently. I did try MultiSliceImageMapper example. I use Microsoft VsCode EDI. I npm start the example and i see the menu range slider controls. I did install html-loader in we…

---

## [VTK.JS MultiSliceImageMapper example](https://discourse.vtk.org/t/vtk-js-multisliceimagemapper-example/8579)

<div class="topic-metadata">

**Author:** [@Sohrab\_Azami](https://discourse.vtk.org/u/Sohrab_Azami)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 7:17pm UTC](https://discourse.vtk.org/t/vtk-js-multisliceimagemapper-example/8579 "2022-05-24T19:17:17Z")

</div>

Hi, I have a question about VES (OpenGL ES mobile version) & KiwiViewer to view medical volumes on mobile. I could not find anything on the Kitware site. A repository for VES appeared from another developer GITHUB and I…

---

## [VTK Glyphs](https://discourse.vtk.org/t/vtk-glyphs/8575)

<div class="topic-metadata">

**Author:** [@Qrtiis](https://discourse.vtk.org/u/Qrtiis)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 2:55pm UTC](https://discourse.vtk.org/t/vtk-glyphs/8575 "2022-05-24T14:55:55Z")

</div>

Hello, I am working with carotid.vtk file and I added cutter, contour and glyphs - my glyphs have good direction and everything but they are colored the same (they are all blue) even though their size is different, im u…

---

## [VTK 8.2, performance degradation on upgrade Qt 5.12 -\> 5.15](https://discourse.vtk.org/t/vtk-8-2-performance-degradation-on-upgrade-qt-5-12-5-15/8536)

<div class="topic-metadata">

**Author:** [@miro](https://discourse.vtk.org/u/miro)\
**Replies:** 4\
**Last updated:** [May 24, 2022, 2:20pm UTC](https://discourse.vtk.org/t/vtk-8-2-performance-degradation-on-upgrade-qt-5-12-5-15/8536 "2022-05-24T14:20:55Z")

</div>

Hello all, Asking for help on VTK/Qt performance issue. We are using VTK 8.2 on Linux (based on Ubuntu 18.04) in software for medical device, with several VTK views within a Qt application. There is a live camera view …

---

## [VTK tubefilter](https://discourse.vtk.org/t/vtk-tubefilter/8544)

<div class="topic-metadata">

**Author:** [@Qrtiis](https://discourse.vtk.org/u/Qrtiis)\
**Replies:** 3\
**Last updated:** [May 24, 2022, 12:35pm UTC](https://discourse.vtk.org/t/vtk-tubefilter/8544 "2022-05-24T12:35:23Z")

</div>

Anyone have a clue how to make one of the tubes end wider and another narrower? I have created a line and then added tube filter around it

---

## [vtk wheel missing lib\* libraries, missing flag?](https://discourse.vtk.org/t/vtk-wheel-missing-lib-libraries-missing-flag/8538)

<div class="topic-metadata">

**Author:** [@orbisvicis](https://discourse.vtk.org/u/orbisvicis)\
**Replies:** 8\
**Last updated:** [May 24, 2022, 12:33pm UTC](https://discourse.vtk.org/t/vtk-wheel-missing-lib-libraries-missing-flag/8538 "2022-05-24T12:33:29Z")

</div>

A VTK Cygwin build wrapping Python, after patching, produces the following output: export libraries: build/bin/cyg\*.dll import libraries: build/build/lib.cygwin-3.3.4-x86\_64-3.8/vtkmodules/lib\*.dll.a python libraries…

---

## [making vertebrae simulator using vtk](https://discourse.vtk.org/t/making-vertebrae-simulator-using-vtk/8573)

<div class="topic-metadata">

**Author:** [@hye00525](https://discourse.vtk.org/u/hye00525)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 9:18am UTC](https://discourse.vtk.org/t/making-vertebrae-simulator-using-vtk/8573 "2022-05-24T09:18:14Z")

</div>

Hello, I’m trying to make vertebrae simulator using vtk. I have a few vertebrae stl meshes. I want to make simulation using these. (e.g., nodding his head, etc. ) reference video is here (0:56:10 ~ 0:58:02 ) Can I …

[Previous page](https://discourse.vtk.org/latest.md?page=129)

[Next page](https://discourse.vtk.org/latest.md?page=131)
