# Latest

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

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

**Page:** 240

---

## [Adding all vtkPoints at once](https://discourse.vtk.org/t/adding-all-vtkpoints-at-once/1652)

<div class="topic-metadata">

**Author:** [@jjackso2](https://discourse.vtk.org/u/jjackso2)\
**Replies:** 12\
**Last updated:** [August 28, 2019, 10:12pm UTC](https://discourse.vtk.org/t/adding-all-vtkpoints-at-once/1652 "2019-08-28T22:12:36Z")

</div>

Hi, I have a set of vtkPoints that keeps changing and I wish to refresh the screen with the new data as fast as possible. My problem is it seems like the data has to be in a vtkCell to be displayable. Adding points us…

---

## [Convert png to vti](https://discourse.vtk.org/t/convert-png-to-vti/1649)

<div class="topic-metadata">

**Author:** [@rjsgml5698](https://discourse.vtk.org/u/rjsgml5698)\
**Replies:** 4\
**Last updated:** [August 28, 2019, 4:58am UTC](https://discourse.vtk.org/t/convert-png-to-vti/1649 "2019-08-28T04:58:44Z")

</div>

Hello! I want to convert png to vti. However, the following code does not work correctly. import os import cv2 import numpy as np import pydicom import matplotlib.pylab as plt from glob import glob def dividePa…

---

## [Find the triangle on a sphere](https://discourse.vtk.org/t/find-the-triangle-on-a-sphere/1655)

<div class="topic-metadata">

**Author:** [@Elvis723](https://discourse.vtk.org/u/Elvis723)\
**Replies:** 4\
**Last updated:** [August 28, 2019, 3:21am UTC](https://discourse.vtk.org/t/find-the-triangle-on-a-sphere/1655 "2019-08-28T03:21:19Z")

</div>

Hi! I want to find the triangle that contains a certain point on a sphere in vtk. How should I do that? I knew that spheres in vtk are by default approximated by triangles. Thanks in advance!

---

## [Rasterized output with vtkOpenGLGL2PSExporter](https://discourse.vtk.org/t/rasterized-output-with-vtkopenglgl2psexporter/1642)

<div class="topic-metadata">

**Author:** [@Sowmiya](https://discourse.vtk.org/u/Sowmiya)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 10:39am UTC](https://discourse.vtk.org/t/rasterized-output-with-vtkopenglgl2psexporter/1642 "2019-08-27T10:39:01Z")

</div>

Dear all, I have recently upgraded to VTK 8.2 and using vtkOpenGLGL2PSExporter to export vector graphics formats such as PDF, EPS and SVG. I am facing the similar problem as discussed here -https://public.kitware.com/p…

---

## [Streamlines using unstructered grid.](https://discourse.vtk.org/t/streamlines-using-unstructered-grid/793)

<div class="topic-metadata">

**Author:** [@sariug](https://discourse.vtk.org/u/sariug)\
**Replies:** 2\
**Last updated:** [August 26, 2019, 9:33pm UTC](https://discourse.vtk.org/t/streamlines-using-unstructered-grid/793 "2019-08-26T21:33:05Z")

</div>

Hello, I am quite new to VTK library. I have a data which is unstructered grid. While paraview is able to visualize it in a second, I couldnt find a way to do it in c++. Does any of you have experience with this ? Be…

---

## [sending vtk from server to client](https://discourse.vtk.org/t/sending-vtk-from-server-to-client/1653)

<div class="topic-metadata">

**Author:** [@sariug](https://discourse.vtk.org/u/sariug)\
**Replies:** 0\
**Last updated:** [August 26, 2019, 9:11pm UTC](https://discourse.vtk.org/t/sending-vtk-from-server-to-client/1653 "2019-08-26T21:11:41Z")

</div>

Hello all, In my server-client application(C++) I use VTK for streamline creating. I use UDP for server-client communication due to broadcasting reasong. However, since vtk files are more than 65 kb. I cant send them a…

---

## [How can I write vtkStructuredGrid data in Parallel by using MPI?](https://discourse.vtk.org/t/how-can-i-write-vtkstructuredgrid-data-in-parallel-by-using-mpi/1644)

<div class="topic-metadata">

**Author:** [@myousefi2016](https://discourse.vtk.org/u/myousefi2016)\
**Replies:** 0\
**Last updated:** [August 23, 2019, 1:48pm UTC](https://discourse.vtk.org/t/how-can-i-write-vtkstructuredgrid-data-in-parallel-by-using-mpi/1644 "2019-08-23T13:48:39Z")

</div>

I have a C++ program that use MPI for parallelization. I’m trying to write my output as vtkStructuredGrid format in parallel. In fact, I have this function to write the vtk files: void vtkParallelWriter(int argc, char \*…

---

## [vtkGPUVolumeRayCastMapper and Qt (bug?)](https://discourse.vtk.org/t/vtkgpuvolumeraycastmapper-and-qt-bug/1640)

<div class="topic-metadata">

**Author:** [@Romain](https://discourse.vtk.org/u/Romain)\
**Replies:** 0\
**Last updated:** [August 23, 2019, 10:16am UTC](https://discourse.vtk.org/t/vtkgpuvolumeraycastmapper-and-qt-bug/1640 "2019-08-23T10:16:55Z")

</div>

Hello everyone, I’m working on Windows 10 1903, with Visual Studio 2017 (19.16.27031.1), VTK 8.2 and Qt 5.12.4. My graphic cards is a RTX 2080 Max-Q and the Nvidia driver version is 431.70. I try to use vtkGPUVolumeRa…

---

## [how to make the same window width/level at MPR](https://discourse.vtk.org/t/how-to-make-the-same-window-width-level-at-mpr/1638)

<div class="topic-metadata">

**Author:** [@pingdan](https://discourse.vtk.org/u/pingdan)\
**Replies:** 1\
**Last updated:** [August 23, 2019, 5:10am UTC](https://discourse.vtk.org/t/how-to-make-the-same-window-width-level-at-mpr/1638 "2019-08-23T05:10:32Z")

</div>

I can get MPR views use vtkImagePlaneWidget vtkResliceCursorWidget and so on. I can through SetInteractorStyle function to set mouse event. when I change one of the views’s window width/level with drag mouse, I wish the…

---

## [vtkEventData.h is missing](https://discourse.vtk.org/t/vtkeventdata-h-is-missing/1634)

<div class="topic-metadata">

**Author:** [@Alfonso\_ZR](https://discourse.vtk.org/u/Alfonso_ZR)\
**Replies:** 6\
**Last updated:** [August 22, 2019, 1:38pm UTC](https://discourse.vtk.org/t/vtkeventdata-h-is-missing/1634 "2019-08-22T13:38:07Z")

</div>

Hey all, I’m working on a VR program, and when I try to compile it I get the following error: Cannot open include file: ‘vtkEventData.h’; no such file or directory. What could be issue here?

---

## [vtkAppendPolyData - performance increase?](https://discourse.vtk.org/t/vtkappendpolydata-performance-increase/1590)

<div class="topic-metadata">

**Author:** [@Mskovmand](https://discourse.vtk.org/u/Mskovmand)\
**Replies:** 8\
**Last updated:** [August 22, 2019, 11:14am UTC](https://discourse.vtk.org/t/vtkappendpolydata-performance-increase/1590 "2019-08-22T11:14:46Z")

</div>

Hello there, I’m trying to visualize a highly dense mesh. I have the coordinates and the connectivity of said coordinates. I have already succeeded in showing the mesh, however, after my initial testing, I received a s…

---

## [Extracting Triangles from PolyData while keeping geometry and topology](https://discourse.vtk.org/t/extracting-triangles-from-polydata-while-keeping-geometry-and-topology/1557)

<div class="topic-metadata">

**Author:** [@burgadon](https://discourse.vtk.org/u/burgadon)\
**Replies:** 7\
**Last updated:** [August 22, 2019, 10:29am UTC](https://discourse.vtk.org/t/extracting-triangles-from-polydata-while-keeping-geometry-and-topology/1557 "2019-08-22T10:29:13Z")

</div>

Hello, I’m trying to extract triangles from a PolyData object depending on the direction in which the triangle faces. These PolyData objects are shaped like a slice of pineapple. Round with a hole in the middle and much…

---

## [vtk::MakeSmartPointer(T\*), vtk::TakeSmartPointer(T\*)](https://discourse.vtk.org/t/vtk-makesmartpointer-t-vtk-takesmartpointer-t/1287)

<div class="topic-metadata">

**Author:** [@allison.vacanti](https://discourse.vtk.org/u/allison.vacanti)\
**Replies:** 1\
**Last updated:** [August 22, 2019, 12:47am UTC](https://discourse.vtk.org/t/vtk-makesmartpointer-t-vtk-takesmartpointer-t/1287 "2019-08-22T00:47:57Z")

</div>

One of the remaining tedious parts of using vtkSmartPointer is their creation. For instance, consider creating a new vtkCompositeDataSetIterator from vtkCompositeDataSet::NewIterator() and putting it into a smart pointer…

---

## [Add simple slider to QVTKOpenGLWidget](https://discourse.vtk.org/t/add-simple-slider-to-qvtkopenglwidget/1631)

<div class="topic-metadata">

**Author:** [@NewProggie](https://discourse.vtk.org/u/NewProggie)\
**Replies:** 0\
**Last updated:** [August 21, 2019, 1:01pm UTC](https://discourse.vtk.org/t/add-simple-slider-to-qvtkopenglwidget/1631 "2019-08-21T13:01:24Z")

</div>

Hi all, I’m trying to add a simple VTK based 2D slider to a QVTKOpenGLWidget, but it doesn’t show up no matter what I’ve tried. Following is a minimized example that shows what I’m trying to do. Can anybody help me out …

---

## [VTK.js: Is there actor limit for HardwareSelector?](https://discourse.vtk.org/t/vtk-js-is-there-actor-limit-for-hardwareselector/1572)

<div class="topic-metadata">

**Author:** [@rvilums](https://discourse.vtk.org/u/rvilums)\
**Replies:** 3\
**Last updated:** [August 21, 2019, 7:11am UTC](https://discourse.vtk.org/t/vtk-js-is-there-actor-limit-for-hardwareselector/1572 "2019-08-21T07:11:24Z")

</div>

Hi, I have a lot of actors in the renderer. When a number reaches around 150, HardwareSelector still returns selection object, but selection.getProperties().prop returns null, not the picked actor. What could be the re…

---

## [vtkPProbeFilter?](https://discourse.vtk.org/t/vtkpprobefilter/1619)

<div class="topic-metadata">

**Author:** [@Sean](https://discourse.vtk.org/u/Sean)\
**Replies:** 0\
**Last updated:** [August 19, 2019, 6:27pm UTC](https://discourse.vtk.org/t/vtkpprobefilter/1619 "2019-08-19T18:27:51Z")

</div>

I am trying to develop a real time data probe application and the vtkProbeFilter seems with lagging (probing image generation delay) issue on my case. I felt that one potential solution is parallel data processing throug…

---

## [Animating using vtk.js](https://discourse.vtk.org/t/animating-using-vtk-js/1604)

<div class="topic-metadata">

**Author:** [@Misha](https://discourse.vtk.org/u/Misha)\
**Replies:** 3\
**Last updated:** [August 19, 2019, 2:02pm UTC](https://discourse.vtk.org/t/animating-using-vtk-js/1604 "2019-08-19T14:02:10Z")

</div>

Hi, I have vtk files with data that changes over time. Is it possible to animate the data?

---

## [Save PolyData to CSV using vtkDelimitedTextWriter](https://discourse.vtk.org/t/save-polydata-to-csv-using-vtkdelimitedtextwriter/986)

<div class="topic-metadata">

**Author:** [@NWRichmond](https://discourse.vtk.org/u/NWRichmond)\
**Replies:** 4\
**Last updated:** [May 22, 2019, 1:03am UTC](https://discourse.vtk.org/t/save-polydata-to-csv-using-vtkdelimitedtextwriter/986 "2019-05-22T01:03:19Z")

</div>

I have a VTK file containing 83 points, and I’m trying to use the Python VTK module (no Paraview, no NumPy) to save this data as a CSV file. After looking at a variety of examples, I wrote a script which aims to read the…

---

## [Textured Terrain being inverted](https://discourse.vtk.org/t/textured-terrain-being-inverted/1558)

<div class="topic-metadata">

**Author:** [@tbenega](https://discourse.vtk.org/u/tbenega)\
**Replies:** 2\
**Last updated:** [August 19, 2019, 1:16pm UTC](https://discourse.vtk.org/t/textured-terrain-being-inverted/1558 "2019-08-19T13:16:40Z")

</div>

Hello guys, In my script, I’m applying a texture to a terrain that I’ve created using points. The issue is that when I’ve elevation (z \> 0) the texture is flipped by Z as you can see on the attached image (left is the o…

---

## [\[vtk.js\] Implementing cell selection with the HardwareSelector](https://discourse.vtk.org/t/vtk-js-implementing-cell-selection-with-the-hardwareselector/1439)

<div class="topic-metadata">

**Author:** [@rvilums](https://discourse.vtk.org/u/rvilums)\
**Replies:** 2\
**Last updated:** [August 19, 2019, 8:22am UTC](https://discourse.vtk.org/t/vtk-js-implementing-cell-selection-with-the-hardwareselector/1439 "2019-08-19T08:22:10Z")

</div>

Would it be a pain to implement cell selection in HardwareSelector? Maybe you could suggest some key points and locations. I was looking to the current source code for a while but still could not get to the root. I have…

---

## [OpenVR modules with VTK and Python](https://discourse.vtk.org/t/openvr-modules-with-vtk-and-python/1592)

<div class="topic-metadata">

**Author:** [@Alfonso\_ZR](https://discourse.vtk.org/u/Alfonso_ZR)\
**Replies:** 3\
**Last updated:** [August 17, 2019, 7:02pm UTC](https://discourse.vtk.org/t/openvr-modules-with-vtk-and-python/1592 "2019-08-17T19:02:59Z")

</div>

Good day everyone, I’m having some issues when trying to use the Open VR modules to display something in my python program. My code looks as follows (all of this is done in the Spyder IDE): import vtk def main(): …

---

## [Fine Grid 100x100](https://discourse.vtk.org/t/fine-grid-100x100/1493)

<div class="topic-metadata">

**Author:** [@Vaya\_Putra](https://discourse.vtk.org/u/Vaya_Putra)\
**Replies:** 2\
**Last updated:** [August 17, 2019, 3:55pm UTC](https://discourse.vtk.org/t/fine-grid-100x100/1493 "2019-08-17T15:55:03Z")

</div>

hi i want to make unstructured grid 100x100x1 by using calculation in excel then i write in vtk file. i figure out the error in line 443 but still struggle. if there anyone do same problem with me . so i can not vis…

---

## [Windows line endings in vtk file](https://discourse.vtk.org/t/windows-line-endings-in-vtk-file/1494)

<div class="topic-metadata">

**Author:** [@rvilums](https://discourse.vtk.org/u/rvilums)\
**Replies:** 6\
**Last updated:** [August 16, 2019, 2:54pm UTC](https://discourse.vtk.org/t/windows-line-endings-in-vtk-file/1494 "2019-08-16T14:54:49Z")

</div>

Hi, I read legacy vtk file with vtkPolyDataReader, but the file has CR LF line endings, and the action fails. Should the vtk file contain LF endings per spec, or is it a sort of bug of vtk.js: content.split('\\n')

---

## [Painting individual voxels of a Structured Grid (vtkPolyData) differently.](https://discourse.vtk.org/t/painting-individual-voxels-of-a-structured-grid-vtkpolydata-differently/1574)

<div class="topic-metadata">

**Author:** [@Seun](https://discourse.vtk.org/u/Seun)\
**Replies:** 1\
**Last updated:** [August 16, 2019, 2:16pm UTC](https://discourse.vtk.org/t/painting-individual-voxels-of-a-structured-grid-vtkpolydata-differently/1574 "2019-08-16T14:16:31Z")

</div>

Hello everyone, I have a situation where I have a vtkPolyData created from a structured grid and would like the voxels of this grid painted individually based on some criteria. That is for instance if a voxel is being e…

---

## [Adding a YAML library in VTK](https://discourse.vtk.org/t/adding-a-yaml-library-in-vtk/1578)

<div class="topic-metadata">

**Author:** [@williamfgc](https://discourse.vtk.org/u/williamfgc)\
**Replies:** 7\
**Last updated:** [August 15, 2019, 2:48pm UTC](https://discourse.vtk.org/t/adding-a-yaml-library-in-vtk/1578 "2019-08-15T14:48:16Z")

</div>

Has the possibility of adding a YAML reader been considered in VTK thirdparty? I’d certainly use it due to the human-readable/editable aspects for formulating flexible visualization configuration inputs as a “recipe” (in…

---

## [How to probe a polygonal mesh on a polydata?](https://discourse.vtk.org/t/how-to-probe-a-polygonal-mesh-on-a-polydata/1323)

<div class="topic-metadata">

**Author:** [@bdemin](https://discourse.vtk.org/u/bdemin)\
**Replies:** 4\
**Last updated:** [August 15, 2019, 10:46am UTC](https://discourse.vtk.org/t/how-to-probe-a-polygonal-mesh-on-a-polydata/1323 "2019-08-15T10:46:30Z")

</div>

I’m running a multi-body simulation of a vehicle driving on a rocky terrain and need to get the elevation data of the terrain. The terrain is built from 2 parts: 2D grid of elevation data. “Rocks” which are defined a…

---

## [which function can get the slice size extract by vtkImageReslice?](https://discourse.vtk.org/t/which-function-can-get-the-slice-size-extract-by-vtkimagereslice/1584)

<div class="topic-metadata">

**Author:** [@pingdan](https://discourse.vtk.org/u/pingdan)\
**Replies:** 7\
**Last updated:** [August 15, 2019, 8:32am UTC](https://discourse.vtk.org/t/which-function-can-get-the-slice-size-extract-by-vtkimagereslice/1584 "2019-08-15T08:32:36Z")

</div>

I want to get a slice by codes as below, and I can get the image.but I want to know how to get the slice image’s size, its width and height. static double obliqueX\[3\] = { cos(angle), 0, -sin(angle) }; static double o…

---

## [Lookiing for an x3d viewer](https://discourse.vtk.org/t/lookiing-for-an-x3d-viewer/1561)

<div class="topic-metadata">

**Author:** [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Replies:** 4\
**Last updated:** [August 14, 2019, 8:37pm UTC](https://discourse.vtk.org/t/lookiing-for-an-x3d-viewer/1561 "2019-08-14T20:37:21Z")

</div>

Folks, I’m fixing a bug in vtkX3DExporter. I can’t find an x3d viewer for MAC OS or Ubuntu. Can someone point me to a viewer that they have used? I’ve tried the x3d viewer plugin for chrome on both systems, but neither …

---

## [Different behaviour of DecimatePro and SmoothPolyData depending on OS](https://discourse.vtk.org/t/different-behaviour-of-decimatepro-and-smoothpolydata-depending-on-os/1583)

<div class="topic-metadata">

**Author:** [@vianamp](https://discourse.vtk.org/u/vianamp)\
**Replies:** 1\
**Last updated:** [August 14, 2019, 5:54pm UTC](https://discourse.vtk.org/t/different-behaviour-of-decimatepro-and-smoothpolydata-depending-on-os/1583 "2019-08-14T17:54:20Z")

</div>

Hi guys. Quick question. I am running a combination of DecimatePro + SmoothPolyData on a mesh of about 70K vertices. I am getting different results depending on the OS I use. Running on OS X I get a final mesh with abou…

---

## [Fixed Point ray cast does not render properly 2 components](https://discourse.vtk.org/t/fixed-point-ray-cast-does-not-render-properly-2-components/1581)

<div class="topic-metadata">

**Author:** [@P.TURLAIS](https://discourse.vtk.org/u/P.TURLAIS)\
**Replies:** 0\
**Last updated:** [August 14, 2019, 2:33pm UTC](https://discourse.vtk.org/t/fixed-point-ray-cast-does-not-render-properly-2-components/1581 "2019-08-14T14:33:38Z")

</div>

Hi, I have some troubles with FixedPointVolumeRayCastMapper when using 2 components. I have created a simple test in Python. The dataset is a set of planes convolved with a sinc with 3 lobes along the x axis. The tran…

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

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