# Support

**URL:** https://discourse.vtk.org/c/support/6.md?page=55

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

**Page:** 56

---

## [Marching cube behavior changed](https://discourse.vtk.org/t/marching-cube-behavior-changed/10712)

<div class="topic-metadata">

**Author:** [@lucas\_rouhier](https://discourse.vtk.org/u/lucas_rouhier)\
**Replies:** 12\
**Last updated:** [February 20, 2023, 1:28pm UTC](https://discourse.vtk.org/t/marching-cube-behavior-changed/10712 "2023-02-20T13:28:30Z")

</div>

Hello, Since updating to vtk 9 from vtk8.1.1 I have noticed a slight difference in the marching cube operation. The Spacing used is not rounded as it was before. so the conversion from float (here 0.15) return 0.150000…

---

## [How to read a custom formatted PLY file?](https://discourse.vtk.org/t/how-to-read-a-custom-formatted-ply-file/10718)

<div class="topic-metadata">

**Author:** [@saturdays13](https://discourse.vtk.org/u/saturdays13)\
**Replies:** 5\
**Last updated:** [February 20, 2023, 7:47am UTC](https://discourse.vtk.org/t/how-to-read-a-custom-formatted-ply-file/10718 "2023-02-20T07:47:36Z")

</div>

I would like to know if VTK can load a PLY file of the following format. File header) ply format binary\_little\_endian 1.0 comment Zivid Point Cloud element vertex 2304000 property float x property float y proper…

---

## [VTK file created using Python API is showing missing elements](https://discourse.vtk.org/t/vtk-file-created-using-python-api-is-showing-missing-elements/10723)

<div class="topic-metadata">

**Author:** [@Renard](https://discourse.vtk.org/u/Renard)\
**Replies:** 5\
**Last updated:** [February 19, 2023, 7:37pm UTC](https://discourse.vtk.org/t/vtk-file-created-using-python-api-is-showing-missing-elements/10723 "2023-02-19T19:37:01Z")

</div>

Hi, I’m using the Python API of VTK to convert some Vector data to VTP files. My vector data is in the following format. (1) A coord.out file, which contains the cell number and the cartesian coordinates of each cell …

---

## [Slicer-like dicom import](https://discourse.vtk.org/t/slicer-like-dicom-import/10724)

<div class="topic-metadata">

**Author:** [@wzaylor](https://discourse.vtk.org/u/wzaylor)\
**Replies:** 0\
**Last updated:** [February 17, 2023, 10:17pm UTC](https://discourse.vtk.org/t/slicer-like-dicom-import/10724 "2023-02-17T22:17:13Z")

</div>

Hi, I’m looking to load multiple dicom series and view the images using VTK. I setup ITK to load the images, then converted to vtkImageData, however, the images are not aligned appropriately. Specifically, the scout vi…

---

## [convert .nii to a mesh](https://discourse.vtk.org/t/convert-nii-to-a-mesh/10677)

<div class="topic-metadata">

**Author:** [@Hamid\_Fsian](https://discourse.vtk.org/u/Hamid_Fsian)\
**Replies:** 6\
**Last updated:** [February 16, 2023, 7:46pm UTC](https://discourse.vtk.org/t/convert-nii-to-a-mesh/10677 "2023-02-16T19:46:06Z")

</div>

Dear Community, I am trying to convert a niftii file into a mesh ( and later save it as .obj) and I want to color this latter using the pixel intesity from the nifti volume. Is it possible using vtk and python ?

---

## [Dynamic usage of VTK - generating binary not linked to VTK](https://discourse.vtk.org/t/dynamic-usage-of-vtk-generating-binary-not-linked-to-vtk/10675)

<div class="topic-metadata">

**Author:** [@NomisTuo](https://discourse.vtk.org/u/NomisTuo)\
**Replies:** 5\
**Last updated:** [February 16, 2023, 9:05am UTC](https://discourse.vtk.org/t/dynamic-usage-of-vtk-generating-binary-not-linked-to-vtk/10675 "2023-02-16T09:05:11Z")

</div>

Dear all, I built VTK-9.2.2 as I would like to use it dynamically within a tool if the user wants to get some graphical views. To achieve this, a c++ library within which various “vtk” methods are exposed using “DLLEXP…

---

## [vtk rendering speed issue with large amount of actors (\>1000)](https://discourse.vtk.org/t/vtk-rendering-speed-issue-with-large-amount-of-actors-1000/10696)

<div class="topic-metadata">

**Author:** [@jackshen2028](https://discourse.vtk.org/u/jackshen2028)\
**Replies:** 1\
**Last updated:** [February 16, 2023, 1:20am UTC](https://discourse.vtk.org/t/vtk-rendering-speed-issue-with-large-amount-of-actors-1000/10696 "2023-02-16T01:20:09Z")

</div>

Dear Community, I want to read a simulation data and do postprocessing with vtk. Different kinds of mesh (cell in vtk) are orginized into components, and I want to be able to treat them individually in terms of altering…

---

## [VTK extrusion normal has self intersection cells](https://discourse.vtk.org/t/vtk-extrusion-normal-has-self-intersection-cells/10583)

<div class="topic-metadata">

**Author:** [@Hanxin\_Hua](https://discourse.vtk.org/u/Hanxin_Hua)\
**Replies:** 15\
**Last updated:** [February 16, 2023, 12:01am UTC](https://discourse.vtk.org/t/vtk-extrusion-normal-has-self-intersection-cells/10583 "2023-02-16T00:01:31Z")

</div>

Hi, I have a very irregular surface and then called the extrusion with the normal direction. And then I found that it has all the self intersection cells. I can’t just remove them because the whole polydata will be remov…

---

## [QQuickVTKInteractorAdapter.cxx:110:59: error: no matching function for call to ‘QWheelEvent](https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 8\
**Last updated:** [February 15, 2023, 7:23pm UTC](https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942 "2023-02-15T19:23:33Z")

</div>

Am trying to build the latest, stable download (9.1.0) on Redhat Linux. Encounter the following build error: Vtk/VTK-9.1.0/GUISupport/QtQuick/QQuickVTKInteractorAdapter.cxx: In member function ‘void QQuickVTKInteractorA…

---

## [Having problem about change the volume position](https://discourse.vtk.org/t/having-problem-about-change-the-volume-position/10698)

<div class="topic-metadata">

**Author:** [@MushengWu](https://discourse.vtk.org/u/MushengWu)\
**Replies:** 0\
**Last updated:** [February 15, 2023, 2:33pm UTC](https://discourse.vtk.org/t/having-problem-about-change-the-volume-position/10698 "2023-02-15T14:33:50Z")

</div>

Sorry this problem may seem awkward. I rendered two object，and i need to move object\_B to a specific position in object\_A. And i had calculate the position and direction, here is the problem: when i set the object\_B …

---

## [How long does it take to build vtk for linux in windows?](https://discourse.vtk.org/t/how-long-does-it-take-to-build-vtk-for-linux-in-windows/10640)

<div class="topic-metadata">

**Author:** [@Sagues](https://discourse.vtk.org/u/Sagues)\
**Replies:** 7\
**Last updated:** [February 15, 2023, 2:28pm UTC](https://discourse.vtk.org/t/how-long-does-it-take-to-build-vtk-for-linux-in-windows/10640 "2023-02-15T14:28:06Z")

</div>

I am building vtk library for linux in windows (WSL). I have done the steps in the following page: https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/dev/getting\_started\_linux.md However I did not use para…

---

## [Have problem on render my data](https://discourse.vtk.org/t/have-problem-on-render-my-data/10674)

<div class="topic-metadata">

**Author:** [@MushengWu](https://discourse.vtk.org/u/MushengWu)\
**Replies:** 5\
**Last updated:** [February 15, 2023, 1:56pm UTC](https://discourse.vtk.org/t/have-problem-on-render-my-data/10674 "2023-02-15T13:56:15Z")

</div>

I am new for VTK, and recently my project need it,and i have many question waiting for resolution Here is one: when I load my data, i used the following code: def load\_Nifti(data): Nifti = vtkNIFTIImageReader() Nif…

---

## [How to access vtkTexture in vtk shader?](https://discourse.vtk.org/t/how-to-access-vtktexture-in-vtk-shader/10678)

<div class="topic-metadata">

**Author:** [@Reshma\_R\_S](https://discourse.vtk.org/u/Reshma_R_S)\
**Replies:** 3\
**Last updated:** [February 15, 2023, 11:55am UTC](https://discourse.vtk.org/t/how-to-access-vtktexture-in-vtk-shader/10678 "2023-02-15T11:55:48Z")

</div>

I have used the tutorial Shaders In VTK - KitwarePublic to implement a basic shader in my python vtk program. I know that we can create a texture by using vtk.vtkTexture() class, but I don’t know how I can pass or use th…

---

## [VTK 9.2.2 build aborts](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 17\
**Last updated:** [February 15, 2023, 7:14am UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025 "2023-02-15T07:14:37Z")

</div>

I’m trying to build 9.2.2 with GCC 4.8.5 where I’m taking all of the defaults except that I select a RELASE build and I set VTK\_GUISupportQtQuick to NO. All selections are made with ccmake. This is what I see: In file…

---

## [question about the vtkBoxWidget is blocked](https://discourse.vtk.org/t/question-about-the-vtkboxwidget-is-blocked/10685)

<div class="topic-metadata">

**Author:** [@tong\_yang](https://discourse.vtk.org/u/tong_yang)\
**Replies:** 0\
**Last updated:** [February 15, 2023, 6:07am UTC](https://discourse.vtk.org/t/question-about-the-vtkboxwidget-is-blocked/10685 "2023-02-15T06:07:06Z")

</div>

Excuse me, is there any way to make this white box display first without being blocked? I use vtkBoxWidget to realize this white box.

---

## [Odd color problem with vtkCubeAxesActor](https://discourse.vtk.org/t/odd-color-problem-with-vtkcubeaxesactor/10659)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 10:32pm UTC](https://discourse.vtk.org/t/odd-color-problem-with-vtkcubeaxesactor/10659 "2023-02-14T22:32:45Z")

</div>

Working with the online example: https://kitware.github.io/vtk-examples/site/Cxx/Utilities/DetermineActorType/ I added the following lines to show inner grid lines and set the ones for the X axis to a red-like color p…

---

## [Is it possible that vtk implements pagelod, similar to osg](https://discourse.vtk.org/t/is-it-possible-that-vtk-implements-pagelod-similar-to-osg/10664)

<div class="topic-metadata">

**Author:** [@kingui1106](https://discourse.vtk.org/u/kingui1106)\
**Replies:** 2\
**Last updated:** [February 14, 2023, 10:26pm UTC](https://discourse.vtk.org/t/is-it-possible-that-vtk-implements-pagelod-similar-to-osg/10664 "2023-02-14T22:26:36Z")

</div>

osg pagelod example PagedLOD - FlightGear wiki

---

## [Read PLY and texture](https://discourse.vtk.org/t/read-ply-and-texture/10673)

<div class="topic-metadata">

**Author:** [@micheleivani](https://discourse.vtk.org/u/micheleivani)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 10:25pm UTC](https://discourse.vtk.org/t/read-ply-and-texture/10673 "2023-02-14T22:25:11Z")

</div>

Hello, I have a ply file and the realated texture in a separate JPG file. How can I render the 3D window the model with the colors? var filename = Path.Combine(basePath, "lower.ply"); var filenameTexture = Path.Combine…

---

## [I cannot use QVTKOpenGLNativeWidget to normal display a widgets?](https://discourse.vtk.org/t/i-cannot-use-qvtkopenglnativewidget-to-normal-display-a-widgets/10683)

<div class="topic-metadata">

**Author:** [@Arvin](https://discourse.vtk.org/u/Arvin)\
**Replies:** 0\
**Last updated:** [February 14, 2023, 9:40pm UTC](https://discourse.vtk.org/t/i-cannot-use-qvtkopenglnativewidget-to-normal-display-a-widgets/10683 "2023-02-14T21:40:30Z")

</div>

there is my code , i want to add a coordinate like this the follow is my code curvessurfaces.h #ifndef CURVESSURFACES\_H #define CURVESSURFACES\_H #include \<QMainWindow\> #include \<QVTKOpenGLNativeWidget.h\> #include \<v…

---

## [Surface nets and marching cubes](https://discourse.vtk.org/t/surface-nets-and-marching-cubes/7844)

<div class="topic-metadata">

**Author:** [@wael869](https://discourse.vtk.org/u/wael869)\
**Replies:** 6\
**Last updated:** [February 10, 2023, 4:10pm UTC](https://discourse.vtk.org/t/surface-nets-and-marching-cubes/7844 "2023-02-10T16:10:03Z")

</div>

Can we use surface nets algorithm instead of marching cubes for isosurface generation?

---

## [How to select the object and get its unique ID in VTK VB.net?](https://discourse.vtk.org/t/how-to-select-the-object-and-get-its-unique-id-in-vtk-vb-net/10655)

<div class="topic-metadata">

**Author:** [@Ahmed\_Anas](https://discourse.vtk.org/u/Ahmed_Anas)\
**Replies:** 0\
**Last updated:** [February 10, 2023, 1:06pm UTC](https://discourse.vtk.org/t/how-to-select-the-object-and-get-its-unique-id-in-vtk-vb-net/10655 "2023-02-10T13:06:31Z")

</div>

Lets say I have an object i.e. vtkLineSource. I have drawn it using the code. Public Sub CreateLine(x1 As Double, y1 As Double, z1 As Double, x2 As Double, y2 As Double, z2 As Double, …

---

## [Is it possible to draw a roi(rectangle) on the vtkImageViewer2?](https://discourse.vtk.org/t/is-it-possible-to-draw-a-roi-rectangle-on-the-vtkimageviewer2/4772)

<div class="topic-metadata">

**Author:** [@Kim\_William](https://discourse.vtk.org/u/Kim_William)\
**Replies:** 2\
**Last updated:** [February 9, 2023, 4:15pm UTC](https://discourse.vtk.org/t/is-it-possible-to-draw-a-roi-rectangle-on-the-vtkimageviewer2/4772 "2023-02-09T16:15:27Z")

</div>

Hi all. I have a question about the vtkImageViewer2. I would like to draw an ROI box and move/drag it. For example: I made it using GDI++. Does VTK provide this function on the vtkImageViewer2? I have tested some…

---

## [order of returned points for a cell](https://discourse.vtk.org/t/order-of-returned-points-for-a-cell/10650)

<div class="topic-metadata">

**Author:** [@sarmad](https://discourse.vtk.org/u/sarmad)\
**Replies:** 2\
**Last updated:** [February 9, 2023, 3:45pm UTC](https://discourse.vtk.org/t/order-of-returned-points-for-a-cell/10650 "2023-02-09T15:45:37Z")

</div>

I am reading open foam data and for a specific type of cells for example QUAD, i store the point ids in an array. To get the point ids i use vtkIdList \*pointIds = currentCell-\>GetPointIds(). My question here is, what d…

---

## [Pyvista based on vtk kernel cannot draw and display all edges of the mesh in vtk files.](https://discourse.vtk.org/t/pyvista-based-on-vtk-kernel-cannot-draw-and-display-all-edges-of-the-mesh-in-vtk-files/10299)

<div class="topic-metadata">

**Author:** [@csmx](https://discourse.vtk.org/u/csmx)\
**Replies:** 3\
**Last updated:** [February 9, 2023, 3:22am UTC](https://discourse.vtk.org/t/pyvista-based-on-vtk-kernel-cannot-draw-and-display-all-edges-of-the-mesh-in-vtk-files/10299 "2023-02-09T03:22:42Z")

</div>

When I used Pyvista to display the mesh model in vtk file, I found that Pyvista based on vtk kernel cannot draw and display all edges of the mesh in vtk files. Please help solve this problem. Many thanks. Here i…

---

## [How do I iterate through different MaskInputs on vtkGPUVolumeRayCastMapper](https://discourse.vtk.org/t/how-do-i-iterate-through-different-maskinputs-on-vtkgpuvolumeraycastmapper/10643)

<div class="topic-metadata">

**Author:** [@Oscar](https://discourse.vtk.org/u/Oscar)\
**Replies:** 0\
**Last updated:** [February 8, 2023, 1:58pm UTC](https://discourse.vtk.org/t/how-do-i-iterate-through-different-maskinputs-on-vtkgpuvolumeraycastmapper/10643 "2023-02-08T13:58:07Z")

</div>

I am trying to iterate through different masks using vtkGPUVolumeRayCastMapper-\>SetMaskInput() but its only working with the first iteration. The second time I call the function with a different maskImage does not produc…

---

## [error: incomplete type 'vtkOStreamWrapper::std\_string' used in type trait expression](https://discourse.vtk.org/t/error-incomplete-type-vtkostreamwrapper-std-string-used-in-type-trait-expression/10639)

<div class="topic-metadata">

**Author:** [@qi\_li](https://discourse.vtk.org/u/qi_li)\
**Replies:** 1\
**Last updated:** [February 8, 2023, 1:48am UTC](https://discourse.vtk.org/t/error-incomplete-type-vtkostreamwrapper-std-string-used-in-type-trait-expression/10639 "2023-02-08T01:48:53Z")

</div>

Hello, did anyone knows where is the definition of the forward declaration class std\_string in tkOStreamWrapper.h. Then I can include this file to make the std\_string complete. I have searched all the head files, didn’t …

---

## [Efficient use of vtkPolyDataNormals to show smooth surfaces](https://discourse.vtk.org/t/efficient-use-of-vtkpolydatanormals-to-show-smooth-surfaces/10635)

<div class="topic-metadata">

**Author:** [@sotodela](https://discourse.vtk.org/u/sotodela)\
**Replies:** 6\
**Last updated:** [February 7, 2023, 2:28pm UTC](https://discourse.vtk.org/t/efficient-use-of-vtkpolydatanormals-to-show-smooth-surfaces/10635 "2023-02-07T14:28:41Z")

</div>

Hi, I am using vtkLookupTable() and vtkUnsignedCharArray() to re-color a mesh. The Array that contains the colors is modified several times interactively. The problem I have is that to show the actor with a smooth surf…

---

## [VTK file format supporting multiple meshes?](https://discourse.vtk.org/t/vtk-file-format-supporting-multiple-meshes/10598)

<div class="topic-metadata">

**Author:** [@rexthor](https://discourse.vtk.org/u/rexthor)\
**Replies:** 3\
**Last updated:** [February 6, 2023, 1:22pm UTC](https://discourse.vtk.org/t/vtk-file-format-supporting-multiple-meshes/10598 "2023-02-06T13:22:52Z")

</div>

If I wanted to store a torus and a cylinder in a VTK file, what file format would I store it in? I have figured out how to store a vtkPolyData or a vtkUnstructuredGrid … but what if I wanted to store multiples in a file?…

---

## [convert file into vtk and stl format](https://discourse.vtk.org/t/convert-file-into-vtk-and-stl-format/10599)

<div class="topic-metadata">

**Author:** [@Abdelkareem\_Elkhateb](https://discourse.vtk.org/u/Abdelkareem_Elkhateb)\
**Replies:** 3\
**Last updated:** [February 6, 2023, 1:10pm UTC](https://discourse.vtk.org/t/convert-file-into-vtk-and-stl-format/10599 "2023-02-06T13:10:20Z")

</div>

I am trying to save a cube into a vtk and stl files! this is the task my question is I read the docs and save it into .ply file this is the stl extension, so how can I save it as a vtk file with python ! i know the quest…

---

## [Get single contour from vtkPolyData](https://discourse.vtk.org/t/get-single-contour-from-vtkpolydata/10536)

<div class="topic-metadata">

**Author:** [@SebastianWilke](https://discourse.vtk.org/u/SebastianWilke)\
**Replies:** 10\
**Last updated:** [February 5, 2023, 1:30pm UTC](https://discourse.vtk.org/t/get-single-contour-from-vtkpolydata/10536 "2023-02-05T13:30:02Z")

</div>

Hi! I have vtkPolyData containing contour data for multiple slices created using vtkPolyData::SetPoints() and vtkPolyData::SetLines(): Is there a convenient way to extract a single of these contour lines (possibly w…

[Previous page](https://discourse.vtk.org/c/support/6.md?page=54)

[Next page](https://discourse.vtk.org/c/support/6.md?page=56)
