# Development

**URL:** https://discourse.vtk.org/c/development/7.md?page=39

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

**Page:** 40

---

## [About web-project-templates-master](https://discourse.vtk.org/t/about-web-project-templates-master/4975)

<div class="topic-metadata">

**Author:** [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)\
**Replies:** 4\
**Last updated:** [January 11, 2021, 6:33pm UTC](https://discourse.vtk.org/t/about-web-project-templates-master/4975 "2021-01-11T18:33:45Z")

</div>

Dear All, I want to make a function handler of the mouse at vtk\_protocol.py. I inserted the following code in the class VtkCone: @exportRpc("viewport.mouse.interaction") def updatemousedoublecone(self, event): freq…

---

## [VTK Chart Overlay Doesn't work with VTK 9](https://discourse.vtk.org/t/vtk-chart-overlay-doesnt-work-with-vtk-9/3616)

<div class="topic-metadata">

**Author:** [@Andrew](https://discourse.vtk.org/u/Andrew)\
**Replies:** 14\
**Last updated:** [January 11, 2021, 5:35pm UTC](https://discourse.vtk.org/t/vtk-chart-overlay-doesnt-work-with-vtk-9/3616 "2021-01-11T17:35:26Z")

</div>

Hey everyone, I’m trying to overlay a chart on a 3d scene. This works in VTK versions \< 9. Additionally I found the chart overlay example online doesn’t work with VTK 9. Example: https://lorensen.github.io/VTKExamples/s…

---

## [vtkTextProperty LineSpacing default to 1.0](https://discourse.vtk.org/t/vtktextproperty-linespacing-default-to-1-0/4978)

<div class="topic-metadata">

**Author:** [@Lfx\_Paul](https://discourse.vtk.org/u/Lfx_Paul)\
**Replies:** 1\
**Last updated:** [January 11, 2021, 10:48am UTC](https://discourse.vtk.org/t/vtktextproperty-linespacing-default-to-1-0/4978 "2021-01-11T10:48:42Z")

</div>

Hi all, During the development of new features in vtkMatplotlibMathTextUtilities (support for multilines and multicolumns in text representation), we noticed that the LineSpacing property of vtkTextProperty was defaulte…

---

## [show percentage in vtk Pie chart](https://discourse.vtk.org/t/show-percentage-in-vtk-pie-chart/4973)

<div class="topic-metadata">

**Author:** [@Nina](https://discourse.vtk.org/u/Nina)\
**Replies:** 1\
**Last updated:** [January 11, 2021, 8:59am UTC](https://discourse.vtk.org/t/show-percentage-in-vtk-pie-chart/4973 "2021-01-11T08:59:15Z")

</div>

Hi; How can I display pourcentage in a pie chart using vtk. I followed this exemple, but I also want display data on pie chart. https://vtk.org/Wiki/VTK/Examples/Cxx/Plotting/PieChart Thank’s in advance

---

## [Caching of rendering results in VTK render window layers?](https://discourse.vtk.org/t/caching-of-rendering-results-in-vtk-render-window-layers/4677)

<div class="topic-metadata">

**Author:** [@estan](https://discourse.vtk.org/u/estan)\
**Replies:** 3\
**Last updated:** [January 9, 2021, 6:25pm UTC](https://discourse.vtk.org/t/caching-of-rendering-results-in-vtk-render-window-layers/4677 "2021-01-09T18:25:43Z")

</div>

Hi all, We would like to draw some simple 2D polygonal geometry on top of a volume rendering. The drawing of the polygonal data should ideally rendered at a high frame rate, because it is supposed to follow the mouse an…

---

## [vtkPVDReader](https://discourse.vtk.org/t/vtkpvdreader/4952)

<div class="topic-metadata">

**Author:** [@aowen](https://discourse.vtk.org/u/aowen)\
**Replies:** 2\
**Last updated:** [January 5, 2021, 3:56pm UTC](https://discourse.vtk.org/t/vtkpvdreader/4952 "2021-01-05T15:56:41Z")

</div>

I noticed that Paraview contains a vtkPVDReader module. Are there any plans to move this out of Paraview and into the VTK library? I didn’t see any obvious dependencies on Paraview when I glanced through the file (I admi…

---

## [New reader in Paraview](https://discourse.vtk.org/t/new-reader-in-paraview/4944)

<div class="topic-metadata">

**Author:** [@halowine](https://discourse.vtk.org/u/halowine)\
**Replies:** 1\
**Last updated:** [January 4, 2021, 9:50am UTC](https://discourse.vtk.org/t/new-reader-in-paraview/4944 "2021-01-04T09:50:33Z")

</div>

Hello, I want to add a new reader in Paraview which is implemented in VTK. Do I need to wait the release of VTK with my modification before going to Paraview or can I make both pull request now (on each gitlab repositor…

---

## [Configuring with external dependencies](https://discourse.vtk.org/t/configuring-with-external-dependencies/4887)

<div class="topic-metadata">

**Author:** [@aisha](https://discourse.vtk.org/u/aisha)\
**Replies:** 1\
**Last updated:** [December 24, 2020, 4:56am UTC](https://discourse.vtk.org/t/configuring-with-external-dependencies/4887 "2020-12-24T04:56:24Z")

</div>

I’m trying to upgrade the Gentoo Linux VTK package and am currently unable to see how to make VTK use external libraries instead of internal ones, like say for loguru and utf8cpp. Could anyone point out what options I n…

---

## [vtkImageActor interpolation limited to linear](https://discourse.vtk.org/t/vtkimageactor-interpolation-limited-to-linear/4858)

<div class="topic-metadata">

**Author:** [@spencermanwell](https://discourse.vtk.org/u/spencermanwell)\
**Replies:** 7\
**Last updated:** [December 22, 2020, 10:02pm UTC](https://discourse.vtk.org/t/vtkimageactor-interpolation-limited-to-linear/4858 "2020-12-22T22:02:00Z")

</div>

Hi there, I use VTK to display medical images like CT and MR, which in the medical imaging domain are high-resolution imaging modalities. My problem is that when I render these images linear artifacts along pixel bounda…

---

## [Error during the cell blanking of explicit structured grid](https://discourse.vtk.org/t/error-during-the-cell-blanking-of-explicit-structured-grid/4863)

<div class="topic-metadata">

**Author:** [@rodrigomologni](https://discourse.vtk.org/u/rodrigomologni)\
**Replies:** 3\
**Last updated:** [December 20, 2020, 9:00pm UTC](https://discourse.vtk.org/t/error-during-the-cell-blanking-of-explicit-structured-grid/4863 "2020-12-20T21:00:45Z")

</div>

Cell blanking (vtkDataSetAttributes.HIDDENCELL) of explicit structured grids produces the following error: ERROR:root:Invalid cell type: 0 2020-12-19 23:24:55.908 ( 11.046s) \[ \] vtkPolyData.cxx:10…

---

## [Obtaining the curve of intersection in vtk](https://discourse.vtk.org/t/obtaining-the-curve-of-intersection-in-vtk/4769)

<div class="topic-metadata">

**Author:** [@Anish\_Basnet](https://discourse.vtk.org/u/Anish_Basnet)\
**Replies:** 5\
**Last updated:** [December 18, 2020, 10:02am UTC](https://discourse.vtk.org/t/obtaining-the-curve-of-intersection-in-vtk/4769 "2020-12-18T10:02:46Z")

</div>

Hello everyone, Is there a function in VTK that could determine the curve of intersection between two polydatas? I’d also like to obtain the points that lie in the curve(indicated by the red color in the figure below).…

---

## [Image Registration and Fusion](https://discourse.vtk.org/t/image-registration-and-fusion/4807)

<div class="topic-metadata">

**Author:** [@dporter](https://discourse.vtk.org/u/dporter)\
**Replies:** 2\
**Last updated:** [December 17, 2020, 9:50pm UTC](https://discourse.vtk.org/t/image-registration-and-fusion/4807 "2020-12-17T21:50:59Z")

</div>

Hello All, I am on the hunt for Image Fusion examples or open source apps that I can use for my work at the Mayo Clinic. Does anyone have software you are will to share? Thanks.

---

## [Points of inflection of a polydata Curve](https://discourse.vtk.org/t/points-of-inflection-of-a-polydata-curve/4849)

<div class="topic-metadata">

**Author:** [@Anish\_Basnet](https://discourse.vtk.org/u/Anish_Basnet)\
**Replies:** 0\
**Last updated:** [December 17, 2020, 4:25pm UTC](https://discourse.vtk.org/t/points-of-inflection-of-a-polydata-curve/4849 "2020-12-17T16:25:29Z")

</div>

Hello everyone, Is there any way to obtain points of inflection in VTK? I found out that a filter called vtkDecimatePro does offer a possibility. But it works only with triangular meshes. The curve that I have obtained…

---

## [Can I replace vtkRenderWindow to the window I created?](https://discourse.vtk.org/t/can-i-replace-vtkrenderwindow-to-the-window-i-created/4834)

<div class="topic-metadata">

**Author:** [@YAN\_LIU](https://discourse.vtk.org/u/YAN_LIU)\
**Replies:** 0\
**Last updated:** [December 16, 2020, 2:53pm UTC](https://discourse.vtk.org/t/can-i-replace-vtkrenderwindow-to-the-window-i-created/4834 "2020-12-16T14:53:17Z")

</div>

I create a window by CreateWindowEx(), and get hWnd. Can I replace vtkRenderWindow to the window I created? I am new to vtk, but little to DirectX11. thanks!

---

## [GetPointer vs ValueRange for typed data arrays](https://discourse.vtk.org/t/getpointer-vs-valuerange-for-typed-data-arrays/4826)

<div class="topic-metadata">

**Author:** [@jaswantp](https://discourse.vtk.org/u/jaswantp)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 7:33am UTC](https://discourse.vtk.org/t/getpointer-vs-valuerange-for-typed-data-arrays/4826 "2020-12-16T07:33:27Z")

</div>

I’m using vtkIdTypeArray to implement a half-edge data structure for 2D meshes. Once the faces are prepared, the connectivity and offsets array will be sent to vtkCellArray with (vtkCellArray::SetData(vtkIdTypeArray\*, vt…

---

## [Simplifying algorithms by making parallel/composite-data support universal](https://discourse.vtk.org/t/simplifying-algorithms-by-making-parallel-composite-data-support-universal/4825)

<div class="topic-metadata">

**Author:** [@utkarshayachit](https://discourse.vtk.org/u/utkarshayachit)\
**Replies:** 0\
**Last updated:** [December 15, 2020, 2:46pm UTC](https://discourse.vtk.org/t/simplifying-algorithms-by-making-parallel-composite-data-support-universal/4825 "2020-12-15T14:46:58Z")

</div>

Time and time again we run into implementations of algorithms of this form: a basic implementation A a subclass of A, say B, to handle composite-dataset input a subclass of B, say C, to handle parallel/distributed use-…

---

## [problem with vtkcelllocator intersectwithline](https://discourse.vtk.org/t/problem-with-vtkcelllocator-intersectwithline/4821)

<div class="topic-metadata">

**Author:** [@wael869](https://discourse.vtk.org/u/wael869)\
**Replies:** 2\
**Last updated:** [December 15, 2020, 9:58am UTC](https://discourse.vtk.org/t/problem-with-vtkcelllocator-intersectwithline/4821 "2020-12-15T09:58:55Z")

</div>

I have a capped cylinder that I have have drawn from points and polys. when I am trying to find intersection between it and a finite line 0 is returned , on the other hand when I am trying to do this with another mesh th…

---

## [VTK Memory Management](https://discourse.vtk.org/t/vtk-memory-management/4820)

<div class="topic-metadata">

**Author:** [@dporter](https://discourse.vtk.org/u/dporter)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 9:50am UTC](https://discourse.vtk.org/t/vtk-memory-management/4820 "2020-12-15T09:50:42Z")

</div>

Good morning, could someone direct me to documentation on VTK memory management. How do you handle large image sets and processing without special hardware?

---

## [Oblique Slicing and Thick Slicing UI](https://discourse.vtk.org/t/oblique-slicing-and-thick-slicing-ui/4806)

<div class="topic-metadata">

**Author:** [@dporter](https://discourse.vtk.org/u/dporter)\
**Replies:** 3\
**Last updated:** [December 14, 2020, 6:59pm UTC](https://discourse.vtk.org/t/oblique-slicing-and-thick-slicing-ui/4806 "2020-12-14T18:59:37Z")

</div>

Hello VTK Users! Does anyone have UI software that you can share, that performs Orthogonal Oblique slicing with the ability to set thick slices. We’re developing a viewer here at the Mayo Clinic that could benefit from y…

---

## [New class to modify vtkCutter](https://discourse.vtk.org/t/new-class-to-modify-vtkcutter/4801)

<div class="topic-metadata">

**Author:** [@sugeng](https://discourse.vtk.org/u/sugeng)\
**Replies:** 1\
**Last updated:** [December 12, 2020, 3:56am UTC](https://discourse.vtk.org/t/new-class-to-modify-vtkcutter/4801 "2020-12-12T03:56:09Z")

</div>

Dear All, I have a new class designed to modify output from vtkCutter as shown below. Here, this class must be placed directly after vtkCutter. This new class had been actually written before in VTK 4.2 which worked pr…

---

## [pycharm as ide for vtk python](https://discourse.vtk.org/t/pycharm-as-ide-for-vtk-python/4272)

<div class="topic-metadata">

**Author:** [@Francesc](https://discourse.vtk.org/u/Francesc)\
**Replies:** 1\
**Last updated:** [December 10, 2020, 2:51am UTC](https://discourse.vtk.org/t/pycharm-as-ide-for-vtk-python/4272 "2020-12-10T02:51:47Z")

</div>

Hello guys, I am new at VTK. I managed to set-up PyCharm as IDE for VTK Python development. I wanted to share this info with you in case it is useful and also for some experts in the subject to review if I am missing so…

---

## [Show nothing with QtQuick and VTK 9.0?](https://discourse.vtk.org/t/show-nothing-with-qtquick-and-vtk-9-0/4790)

<div class="topic-metadata">

**Author:** [@Behtgod](https://discourse.vtk.org/u/Behtgod)\
**Replies:** 0\
**Last updated:** [December 7, 2020, 8:33am UTC](https://discourse.vtk.org/t/show-nothing-with-qtquick-and-vtk-9-0/4790 "2020-12-07T08:33:36Z")

</div>

I build a GitHub project QtVtk with Qt 5.12 and VTK 8.2. It worked fine. But when I migrate the project to VTK 9.0,it show nothing in widget. Seems that something is changed but I have no idea. Does anyone knows how …

---

## [Building vtk 8.2 with VTKDicom in C++](https://discourse.vtk.org/t/building-vtk-8-2-with-vtkdicom-in-c/4762)

<div class="topic-metadata">

**Author:** [@dporter](https://discourse.vtk.org/u/dporter)\
**Replies:** 11\
**Last updated:** [December 2, 2020, 8:06pm UTC](https://discourse.vtk.org/t/building-vtk-8-2-with-vtkdicom-in-c/4762 "2020-12-02T20:06:17Z")

</div>

I had this working before :expressionless: … I modified a version of FourPaneViewer, QtVTKRenderWindows to use David Gobbi’s VTKDicom so that it would read compressed DICOM files. I’m also using vtk version 8.2 and GDCM…

---

## [Python - Dynamically change the opacity values of vtkPieceWiseFunction()](https://discourse.vtk.org/t/python-dynamically-change-the-opacity-values-of-vtkpiecewisefunction/4698)

<div class="topic-metadata">

**Author:** [@Gibser](https://discourse.vtk.org/u/Gibser)\
**Replies:** 2\
**Last updated:** [November 26, 2020, 11:45am UTC](https://discourse.vtk.org/t/python-dynamically-change-the-opacity-values-of-vtkpiecewisefunction/4698 "2020-11-26T11:45:05Z")

</div>

Hi everyone, this is my first post here. I used vtkplotter to show a 3d model starting from dicom scans with the following code: import vtk from vtkplotter import \* import numpy as np from vtkmodules.vtkCommonDataModel …

---

## [2D Surface cutter development](https://discourse.vtk.org/t/2d-surface-cutter-development/4481)

<div class="topic-metadata">

**Author:** [@jaswantp](https://discourse.vtk.org/u/jaswantp)\
**Replies:** 12\
**Last updated:** [November 24, 2020, 2:46pm UTC](https://discourse.vtk.org/t/2d-surface-cutter-development/4481 "2020-11-24T14:46:14Z")

</div>

It appears the vtkCookieCutter doesn’t yet have an InsideOut option. vtkClipDataSet is not exactly precise for 2D surfaces. This MR has certain issues. After tinkering with vtkCookieCutter, I felt it needed to be redesi…

---

## [UString In VTK](https://discourse.vtk.org/t/ustring-in-vtk/4696)

<div class="topic-metadata">

**Author:** [@Thomas\_Caissard](https://discourse.vtk.org/u/Thomas_Caissard)\
**Replies:** 6\
**Last updated:** [November 20, 2020, 11:33pm UTC](https://discourse.vtk.org/t/ustring-in-vtk/4696 "2020-11-20T23:33:49Z")

</div>

Good morning everyone, whilst implementing a new feature in VTK, one of my colleague had performance issues w.r.t. to array type conversion. More precisely, he was casting something to a vtkFloatArray using the vtkArray…

---

## [More complete EGL support](https://discourse.vtk.org/t/more-complete-egl-support/4708)

<div class="topic-metadata">

**Author:** [@clintonstimpson](https://discourse.vtk.org/u/clintonstimpson)\
**Replies:** 1\
**Last updated:** [November 20, 2020, 5:26pm UTC](https://discourse.vtk.org/t/more-complete-egl-support/4708 "2020-11-20T17:26:46Z")

</div>

Have there been any thoughts into having more complete support for EGL as a replacement for GLX? I’m interested in having EGL offscreen plus EGL onscreen (xcb/X11) in a single build of VTK.

---

## [How to plot a smooth curve and attached to a surface?](https://discourse.vtk.org/t/how-to-plot-a-smooth-curve-and-attached-to-a-surface/4706)

<div class="topic-metadata">

**Author:** [@Beheshtian](https://discourse.vtk.org/u/Beheshtian)\
**Replies:** 0\
**Last updated:** [November 20, 2020, 3:38pm UTC](https://discourse.vtk.org/t/how-to-plot-a-smooth-curve-and-attached-to-a-surface/4706 "2020-11-20T15:38:25Z")

</div>

Hi all, I’m going to plot a curve that attached to a surface ( polydata) and be smooth. how can I do that? thank you all.

---

## [Wrong MPR image orientation when using vtkResliceImageViewer](https://discourse.vtk.org/t/wrong-mpr-image-orientation-when-using-vtkresliceimageviewer/4158)

<div class="topic-metadata">

**Author:** [@sherinnovation](https://discourse.vtk.org/u/sherinnovation)\
**Replies:** 6\
**Last updated:** [November 19, 2020, 4:45pm UTC](https://discourse.vtk.org/t/wrong-mpr-image-orientation-when-using-vtkresliceimageviewer/4158 "2020-11-19T16:45:01Z")

</div>

I am using vtkResliceImageViewer for displaying MPRs. Depending on the dataset I load, I am facing problems related to orientation. In the below example image, first row shows the image orientations displayed in Slicer3D…

---

## [vtkImageReslice and vtkImageExtractComponents](https://discourse.vtk.org/t/vtkimagereslice-and-vtkimageextractcomponents/4679)

<div class="topic-metadata">

**Author:** [@mogonen](https://discourse.vtk.org/u/mogonen)\
**Replies:** 3\
**Last updated:** [November 19, 2020, 1:01am UTC](https://discourse.vtk.org/t/vtkimagereslice-and-vtkimageextractcomponents/4679 "2020-11-19T01:01:41Z")

</div>

Hi All, I have a method in application that uses ImageReslice and ExtractComponents together to etract the slice z from the 3d image m\_imageSrc and fill an imagebuffer using the transform xform as follows: m\_slicer-\>…

[Previous page](https://discourse.vtk.org/c/development/7.md?page=38)

[Next page](https://discourse.vtk.org/c/development/7.md?page=40)
