# Latest

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

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

**Page:** 156

---

## [Deprecate vtkMutexLock and vtkAtomic ?](https://discourse.vtk.org/t/deprecate-vtkmutexlock-and-vtkatomic/772)

<div class="topic-metadata">

**Author:** [@mwestphal](https://discourse.vtk.org/u/mwestphal)\
**Replies:** 14\
**Last updated:** [November 12, 2021, 8:43am UTC](https://discourse.vtk.org/t/deprecate-vtkmutexlock-and-vtkatomic/772 "2021-11-12T08:43:58Z")

</div>

vtkMutexLock is useless since C++11 support and std::mutex. Should we deprecate it for further removal ?

---

## [Use of vtkOrientationMarkerWidget with QQuickVtkRenderItem](https://discourse.vtk.org/t/use-of-vtkorientationmarkerwidget-with-qquickvtkrenderitem/7149)

<div class="topic-metadata">

**Author:** [@Julienchz](https://discourse.vtk.org/u/Julienchz)\
**Replies:** 0\
**Last updated:** [November 11, 2021, 10:15am UTC](https://discourse.vtk.org/t/use-of-vtkorientationmarkerwidget-with-qquickvtkrenderitem/7149 "2021-11-11T10:15:41Z")

</div>

Hello, I’m using the QQmlVTKPlugin to render VTK9 via Qt6 QML. So my actors are renderer with a QQuickVTKRenderItem. I want to add a vtkAxesActor inside a vtkOrientationMarkerWidget in my scene. But I don’t have a vtkRe…

---

## [TypeError: vtiReader.parseAsArrayBuffer is not a function](https://discourse.vtk.org/t/typeerror-vtireader-parseasarraybuffer-is-not-a-function/7126)

<div class="topic-metadata">

**Author:** [@Sneha-pk](https://discourse.vtk.org/u/Sneha-pk)\
**Replies:** 3\
**Last updated:** [November 12, 2021, 12:45am UTC](https://discourse.vtk.org/t/typeerror-vtireader-parseasarraybuffer-is-not-a-function/7126 "2021-11-12T00:45:58Z")

</div>

Hello all, I am very new to vtk.js and trying to recreate one of the example in react.js. I am getting this error : TypeError: vtiReader.parseAsArrayBuffer is not a function import 'vtk.js/Sources/Rendering/Profiles/V…

---

## [vtkAbstractArray - InsertTuple() and InsertValue()](https://discourse.vtk.org/t/vtkabstractarray-inserttuple-and-insertvalue/7141)

<div class="topic-metadata">

**Author:** [@drpeterfranz](https://discourse.vtk.org/u/drpeterfranz)\
**Replies:** 19\
**Last updated:** [November 11, 2021, 10:08pm UTC](https://discourse.vtk.org/t/vtkabstractarray-inserttuple-and-insertvalue/7141 "2021-11-11T22:08:28Z")

</div>

I have a problem where I need to insert additional tuples (and/or values) in subclasses of vtkAbstractArray, i.e. vtkDataArray or vtkStringArray etc. The data should be truly inserted, i.e. if I insert “x” into (0,1,2,3…

---

## [Empty volumes for labellayer and foregroundlayer](https://discourse.vtk.org/t/empty-volumes-for-labellayer-and-foregroundlayer/7155)

<div class="topic-metadata">

**Author:** [@Shazam\_L](https://discourse.vtk.org/u/Shazam_L)\
**Replies:** 0\
**Last updated:** [November 11, 2021, 9:39pm UTC](https://discourse.vtk.org/t/empty-volumes-for-labellayer-and-foregroundlayer/7155 "2021-11-11T21:39:46Z")

</div>

Hi, I am new to using VTK, I am getting background layer just fine with the right HU values. However, when I pull out labellayer from slicelogic and use the function getvolume. It is always nullptr. On my screen I can …

---

## [Cylinder basic example doesn't work](https://discourse.vtk.org/t/cylinder-basic-example-doesnt-work/7118)

<div class="topic-metadata">

**Author:** [@Ilmu011](https://discourse.vtk.org/u/Ilmu011)\
**Replies:** 5\
**Last updated:** [November 11, 2021, 12:22pm UTC](https://discourse.vtk.org/t/cylinder-basic-example-doesnt-work/7118 "2021-11-11T12:22:55Z")

</div>

I am trying to run this: https://kitware.github.io/vtk-examples/site/Cxx/GeometricObjects/CylinderExample/ basic example, but it doesn’t work. The program compiles with no errors, but at execution, I only get an empty w…

---

## [How to colorise unstructured grid by values (discrete or continious)](https://discourse.vtk.org/t/how-to-colorise-unstructured-grid-by-values-discrete-or-continious/7137)

<div class="topic-metadata">

**Author:** [@user2](https://discourse.vtk.org/u/user2)\
**Replies:** 2\
**Last updated:** [November 11, 2021, 4:57am UTC](https://discourse.vtk.org/t/how-to-colorise-unstructured-grid-by-values-discrete-or-continious/7137 "2021-11-11T04:57:42Z")

</div>

Hi , i’m new to VTK. Result of creating and plotting UnstructeredGrid is left image How can i obtain result close to right image? Do i have to render or to colorise Grid, how to add color legend? Reading docs without …

---

## [vtkProjectedTerrainPath usage](https://discourse.vtk.org/t/vtkprojectedterrainpath-usage/7144)

<div class="topic-metadata">

**Author:** [@bistek](https://discourse.vtk.org/u/bistek)\
**Replies:** 0\
**Last updated:** [November 10, 2021, 10:37pm UTC](https://discourse.vtk.org/t/vtkprojectedterrainpath-usage/7144 "2021-11-10T22:37:34Z")

</div>

Hello, we are trying to use vtkProjectedTerrainPath to vertically project a polyline onto a digital elevation model, but our input terrain data is a vtkStructuredGrid and a 2D height image is required instead (see docume…

---

## [DICOM with vtkImageViewer2()](https://discourse.vtk.org/t/dicom-with-vtkimageviewer2/7140)

<div class="topic-metadata">

**Author:** [@Kamil](https://discourse.vtk.org/u/Kamil)\
**Replies:** 2\
**Last updated:** [November 10, 2021, 7:37pm UTC](https://discourse.vtk.org/t/dicom-with-vtkimageviewer2/7140 "2021-11-10T19:37:22Z")

</div>

I have questions regarding DICOM visualisation orientation in vtkImageViewer2(). Just before I start, I read some other posts and I looked at the these websites: https://www.slicer.org/wiki/Coordinate\_systems https://…

---

## [Using 3Dxconnection space mouse (tdx), events are not triggering and device not working](https://discourse.vtk.org/t/using-3dxconnection-space-mouse-tdx-events-are-not-triggering-and-device-not-working/7138)

<div class="topic-metadata">

**Author:** [@cebugdev](https://discourse.vtk.org/u/cebugdev)\
**Replies:** 1\
**Last updated:** [November 10, 2021, 4:09pm UTC](https://discourse.vtk.org/t/using-3dxconnection-space-mouse-tdx-events-are-not-triggering-and-device-not-working/7138 "2021-11-10T16:09:27Z")

</div>

Hi, we are planning to integrate 3DX spacemouse device to our VTK based QT application, I followed the tutorial from here https://gitlab.kitware.com/lenlen/vtk/-/blob/b50286296b8cca5265f9c947f6c3deec12d65f23/Rendering/O…

---

## [Display data with a "preset" LookupTable](https://discourse.vtk.org/t/display-data-with-a-preset-lookuptable/7139)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 0\
**Last updated:** [November 10, 2021, 3:27pm UTC](https://discourse.vtk.org/t/display-data-with-a-preset-lookuptable/7139 "2021-11-10T15:27:18Z")

</div>

Hi, In ParaView & VTK.js, there are several Color table presets (stored in ColorMaps.json), and functions to transform these presets into valid LookupTables. I’ve tried to replicate those codes into classic C++ API, bu…

---

## [vtkCellPicker + vtkCompositePolyDataMapper2 + vtkMultiBlockDataSet = picking invisible blocks ...](https://discourse.vtk.org/t/vtkcellpicker-vtkcompositepolydatamapper2-vtkmultiblockdataset-picking-invisible-blocks/7090)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.vtk.org/u/Olivier)\
**Replies:** 1\
**Last updated:** [November 10, 2021, 3:11pm UTC](https://discourse.vtk.org/t/vtkcellpicker-vtkcompositepolydatamapper2-vtkmultiblockdataset-picking-invisible-blocks/7090 "2021-11-10T15:11:51Z")

</div>

Hi, I have a complex tree of PolyDatas nested inside a MultiBlockDataSet. MultiBlockDataSet is then showed with a vtkCompositePolyDataMapper2. Individual PolyDatas can be shown or hidden by the mean of Mapper-\>GetCom…

---

## [vtkStripper get wrong loop contour when inputdata is vtkcutter](https://discourse.vtk.org/t/vtkstripper-get-wrong-loop-contour-when-inputdata-is-vtkcutter/7113)

<div class="topic-metadata">

**Author:** [@ZUNTING\_HU](https://discourse.vtk.org/u/ZUNTING_HU)\
**Replies:** 12\
**Last updated:** [November 10, 2021, 6:16am UTC](https://discourse.vtk.org/t/vtkstripper-get-wrong-loop-contour-when-inputdata-is-vtkcutter/7113 "2021-11-10T06:16:41Z")

</div>

hi guys I use vtkcutter cut mesh by planes and get 200 contours. And, use vtkStripper to detect closed contour. finally, I use vtkCleanPolyData to sort the points of contours code is as follows: vtkSmartPointer cutter…

---

## [building VTK in windows 10, visual studio 2019, lways crashes what am i doing wrong?](https://discourse.vtk.org/t/building-vtk-in-windows-10-visual-studio-2019-lways-crashes-what-am-i-doing-wrong/7105)

<div class="topic-metadata">

**Author:** [@cebugdev](https://discourse.vtk.org/u/cebugdev)\
**Replies:** 1\
**Last updated:** [November 9, 2021, 7:55pm UTC](https://discourse.vtk.org/t/building-vtk-in-windows-10-visual-studio-2019-lways-crashes-what-am-i-doing-wrong/7105 "2021-11-09T19:55:58Z")

</div>

I have followed various tutorials including one where I build it with QT and building it as a standalone or running a stand alone application without QT I even just copy and pasted the sampl…

---

## [Display 3D image in RGB](https://discourse.vtk.org/t/display-3d-image-in-rgb/7122)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 1\
**Last updated:** [November 9, 2021, 7:24pm UTC](https://discourse.vtk.org/t/display-3d-image-in-rgb/7122 "2021-11-09T19:24:12Z")

</div>

Dear All, I want to display a 3D image in RGB. What is missing in the following code? self.image\_3d = vtk.vtkImageData() self.image\_3d.SetDimensions(dim5) self.image\_3d.SetSpacing(scale5) points = self.…

---

## [vtkDICOMCTGenerator in vtkjs?](https://discourse.vtk.org/t/vtkdicomctgenerator-in-vtkjs/7110)

<div class="topic-metadata">

**Author:** [@shanebenlolo](https://discourse.vtk.org/u/shanebenlolo)\
**Replies:** 1\
**Last updated:** [November 9, 2021, 6:31pm UTC](https://discourse.vtk.org/t/vtkdicomctgenerator-in-vtkjs/7110 "2021-11-09T18:31:03Z")

</div>

Hello, I have 2 vtkjs image data objects: a CT scan, and a corresponding segmentation labelmap. I’m trying to take these two objects and write them to a DICOM file. I was looking through vtk’s API and saw that there is…

---

## [Geometry / Triangle Filter not using enough Memory.](https://discourse.vtk.org/t/geometry-triangle-filter-not-using-enough-memory/7082)

<div class="topic-metadata">

**Author:** [@AustinPeppel](https://discourse.vtk.org/u/AustinPeppel)\
**Replies:** 8\
**Last updated:** [November 9, 2021, 2:56pm UTC](https://discourse.vtk.org/t/geometry-triangle-filter-not-using-enough-memory/7082 "2021-11-09T14:56:47Z")

</div>

Not something I ever thought I’d have an issue with in regards to programming. I have a relatively complex lattice structure, (that will be more complex with time), that I want to turn into a mesh for exporting. It has …

---

## [Cannot read recent DICOM files with Python](https://discourse.vtk.org/t/cannot-read-recent-dicom-files-with-python/6961)

<div class="topic-metadata">

**Author:** [@LuisFco](https://discourse.vtk.org/u/LuisFco)\
**Replies:** 4\
**Last updated:** [November 9, 2021, 1:47pm UTC](https://discourse.vtk.org/t/cannot-read-recent-dicom-files-with-python/6961 "2021-11-09T13:47:09Z")

</div>

Hi there. I’ve been using some code from the example section to read DICOM files. My code looks very similar to the one from this example. I’ve been using it successfully with DICOM files from the internet. Then I moved …

---

## [When using vtkUnstructuredGrid, how can I not display the internal cells](https://discourse.vtk.org/t/when-using-vtkunstructuredgrid-how-can-i-not-display-the-internal-cells/7102)

<div class="topic-metadata">

**Author:** [@KeyboardMan](https://discourse.vtk.org/u/KeyboardMan)\
**Replies:** 1\
**Last updated:** [November 9, 2021, 1:01pm UTC](https://discourse.vtk.org/t/when-using-vtkunstructuredgrid-how-can-i-not-display-the-internal-cells/7102 "2021-11-09T13:01:09Z")

</div>

In this scenario, the number of cell reaches 7000000。 This caused the rendering to be very slow, and it was impossible to see the internal structure.

---

## [VTK9.1.0 problems](https://discourse.vtk.org/t/vtk9-1-0-problems/7094)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 5\
**Last updated:** [November 9, 2021, 4:24am UTC](https://discourse.vtk.org/t/vtk9-1-0-problems/7094 "2021-11-09T04:24:21Z")

</div>

In the following code import vtk src = vtk.vtkCylinderSource() mapper = vtk.vtkPolyDataMapper() mapper.SetInputConnection(src.GetOutputPort()) actor = vtk.vtkActor() actor.SetMapper(mapper) actor.GetProperty().EdgeV…

---

## [Light disappears when camera view direction is parallel to plane](https://discourse.vtk.org/t/light-disappears-when-camera-view-direction-is-parallel-to-plane/7099)

<div class="topic-metadata">

**Author:** [@rdbrn](https://discourse.vtk.org/u/rdbrn)\
**Replies:** 2\
**Last updated:** [November 8, 2021, 6:48pm UTC](https://discourse.vtk.org/t/light-disappears-when-camera-view-direction-is-parallel-to-plane/7099 "2021-11-08T18:48:05Z")

</div>

I have a textured plane with ambient, diffuse, specular and specular power set. There are no lights in the scene. When I move the camera such that the view is in line with the plane, or away from it, then the plane goes…

---

## [Unable to get sha value from vtkSynchronizableRenderWindow setFetchArrayFunction](https://discourse.vtk.org/t/unable-to-get-sha-value-from-vtksynchronizablerenderwindow-setfetcharrayfunction/7023)

<div class="topic-metadata">

**Author:** [@subratsarangi](https://discourse.vtk.org/u/subratsarangi)\
**Replies:** 5\
**Last updated:** [November 8, 2021, 3:46pm UTC](https://discourse.vtk.org/t/unable-to-get-sha-value-from-vtksynchronizablerenderwindow-setfetcharrayfunction/7023 "2021-11-08T15:46:13Z")

</div>

Hi, I am trying to run vtk.js RemoteViewLocalRendering using angular 12. Below is my code block. const synchCtx = vtkSynchronizableRenderWindow.getSynchronizerContext(); synchCtx.setFetchArrayFunction((sha: any) =\> { …

---

## [Sagittal](https://discourse.vtk.org/t/sagittal/2832)

<div class="topic-metadata">

**Author:** [@Yongun\_Lee](https://discourse.vtk.org/u/Yongun_Lee)\
**Replies:** 37\
**Last updated:** [November 8, 2021, 3:08pm UTC](https://discourse.vtk.org/t/sagittal/2832 "2021-11-08T15:08:05Z")

</div>

Hello. I have a question. The first screen capture is Slicer, and the second screen capture is my program. The original image is Axial. Q1. Why is Sagittal plane looking right instead of left in my program? Q2. I…

---

## [How to disable surface picking with CellPicker ?](https://discourse.vtk.org/t/how-to-disable-surface-picking-with-cellpicker/7059)

<div class="topic-metadata">

**Author:** [@toro](https://discourse.vtk.org/u/toro)\
**Replies:** 1\
**Last updated:** [November 8, 2021, 3:02pm UTC](https://discourse.vtk.org/t/how-to-disable-surface-picking-with-cellpicker/7059 "2021-11-08T15:02:38Z")

</div>

Hi all, I’m using vtk.js. I’ve a CubeSource with a wireframe representation and I’ve a CellPicker. I want the cell picker pick operation to be successful only when edges are clicked, not surfaces (as the cube is represe…

---

## [Extract Streamlines arrival time](https://discourse.vtk.org/t/extract-streamlines-arrival-time/7108)

<div class="topic-metadata">

**Author:** [@Francesco\_Montanaro](https://discourse.vtk.org/u/Francesco_Montanaro)\
**Replies:** 0\
**Last updated:** [November 8, 2021, 12:04pm UTC](https://discourse.vtk.org/t/extract-streamlines-arrival-time/7108 "2021-11-08T12:04:23Z")

</div>

Hi, I’m trying to extract “time” information for streamlines as the total time a particle needs for traveling from the starting point (of the streamline) to a certain position. I have already computed the streamlines a…

---

## [9.1.0 is out](https://discourse.vtk.org/t/9-1-0-is-out/7084)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 4\
**Last updated:** [November 8, 2021, 1:11pm UTC](https://discourse.vtk.org/t/9-1-0-is-out/7084 "2021-11-08T13:11:02Z")

</div>

Hi all, 9.1.0 is out on PyPI, the repository, and the website. Changes since rc4 include some FindHDF5 fixes, missing includes, and new CMake policy warning changes. Release notes can be found here. The next big releas…

---

## [Displaying objects in all viewports to same scale](https://discourse.vtk.org/t/displaying-objects-in-all-viewports-to-same-scale/7101)

<div class="topic-metadata">

**Author:** [@NameRakes](https://discourse.vtk.org/u/NameRakes)\
**Replies:** 1\
**Last updated:** [November 8, 2021, 2:41am UTC](https://discourse.vtk.org/t/displaying-objects-in-all-viewports-to-same-scale/7101 "2021-11-08T02:41:38Z")

</div>

I have the same object displayed in two viewports of the render window: bottom is elevation view, top is plan view. My set up is: 1 Hex8 in unstructured grid (box dimensions along X: 1.0, Y: 0.5, Z: 2.0) 1 Actor (ma…

---

## [problem with interpolating vtkImageData on vtkPolyData with vtkPointInterpolator](https://discourse.vtk.org/t/problem-with-interpolating-vtkimagedata-on-vtkpolydata-with-vtkpointinterpolator/6594)

<div class="topic-metadata">

**Author:** [@martinick](https://discourse.vtk.org/u/martinick)\
**Replies:** 10\
**Last updated:** [November 8, 2021, 1:23am UTC](https://discourse.vtk.org/t/problem-with-interpolating-vtkimagedata-on-vtkpolydata-with-vtkpointinterpolator/6594 "2021-11-08T01:23:05Z")

</div>

Hi all, I’m trying to interpolate a .vti volume on a .vtp mesh using vtkPointInterpolator but I get “Segmentation fault (core dumped)” when I’m updating the vtkPointInterpolator filter. Here is my code: import vtk # R…

---

## [Bad saving in MET\_UCHAR instead MET\_UCHAR\_ARRAY](https://discourse.vtk.org/t/bad-saving-in-met-uchar-instead-met-uchar-array/7098)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 1\
**Last updated:** [November 7, 2021, 8:13pm UTC](https://discourse.vtk.org/t/bad-saving-in-met-uchar-instead-met-uchar-array/7098 "2021-11-07T20:13:16Z")

</div>

Dear All, I want that the image\_3d be saved as MET\_UCHAR\_ARRAY and the code below saves in MET\_UCHAR with only one component instead of three. How can be instructed the saving be done the right way? Thanks, Luís Gonça…

---

## [Extract Streamlines from a vtkUnstructuredGrid](https://discourse.vtk.org/t/extract-streamlines-from-a-vtkunstructuredgrid/7093)

<div class="topic-metadata">

**Author:** [@Francesco\_Montanaro](https://discourse.vtk.org/u/Francesco_Montanaro)\
**Replies:** 1\
**Last updated:** [November 6, 2021, 7:08pm UTC](https://discourse.vtk.org/t/extract-streamlines-from-a-vtkunstructuredgrid/7093 "2021-11-06T19:08:26Z")

</div>

Hi, I have a vtkUnstructuredGrid file from which I want to extract streamlines of the Velocity vector. If I use Paraview the streamlines are generated correctly, however by using the python vtk library I do not get any…

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

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