# Development

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

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

**Page:** 21

---

## [QVTKOpenGLNativeWidget::render() with pcl::PCLVisualizer is slow after upgrade from 8.2 to 9.2.5](https://discourse.vtk.org/t/qvtkopenglnativewidget-render-with-pcl-pclvisualizer-is-slow-after-upgrade-from-8-2-to-9-2-5/11350)

<div class="topic-metadata">

**Author:** [@Thorsten\_Ottosen](https://discourse.vtk.org/u/Thorsten_Ottosen)\
**Replies:** 11\
**Last updated:** [June 13, 2023, 12:52pm UTC](https://discourse.vtk.org/t/qvtkopenglnativewidget-render-with-pcl-pclvisualizer-is-slow-after-upgrade-from-8-2-to-9-2-5/11350 "2023-06-13T12:52:30Z")

</div>

Dear VTK experts, We have been in the process of upgrading our application from Qt5.14 → Qt6.x VTK 8.2 → 9.2.x PCL 1.11.1 → 1.13.x On windows 10 with Visual C++ 2019 in C++17 mode. We use QVTKOpenGLNativeWidget, vtk…

---

## [About vtkImagePlaneWidget remove or delete vtkImageData from it self.](https://discourse.vtk.org/t/about-vtkimageplanewidget-remove-or-delete-vtkimagedata-from-it-self/11675)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 0\
**Last updated:** [June 12, 2023, 2:40am UTC](https://discourse.vtk.org/t/about-vtkimageplanewidget-remove-or-delete-vtkimagedata-from-it-self/11675 "2023-06-12T02:40:06Z")

</div>

Now, I created a vtkImagePlaneWidget instance, and i set the vtkImageData by SetInputDataConnection(). Now, I want to set another vtkImageData instance, But I don’t konw how to remove the first vtkImageData instance or …

---

## [Replace vtkDistancePolyDataFilter with vtkDisplacementPolyDataFilter](https://discourse.vtk.org/t/replace-vtkdistancepolydatafilter-with-vtkdisplacementpolydatafilter/11599)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 12\
**Last updated:** [June 11, 2023, 10:51pm UTC](https://discourse.vtk.org/t/replace-vtkdistancepolydatafilter-with-vtkdisplacementpolydatafilter/11599 "2023-06-11T22:51:46Z")

</div>

I have made a new class vtkDisplacementPolyDataFilter. It is an exact copy of vtkDistancePolyDataFilter except that one in addition to a signed distance gets a “direction”. It is pretty cool if one wished to visualize di…

---

## [How to define my own interactorstyle of vtkplanewidget?](https://discourse.vtk.org/t/how-to-define-my-own-interactorstyle-of-vtkplanewidget/11643)

<div class="topic-metadata">

**Author:** [@Dylan](https://discourse.vtk.org/u/Dylan)\
**Replies:** 3\
**Last updated:** [June 11, 2023, 10:53am UTC](https://discourse.vtk.org/t/how-to-define-my-own-interactorstyle-of-vtkplanewidget/11643 "2023-06-11T10:53:23Z")

</div>

I use vtkPlanewidget to add a plane widget in the rendering window. The default interaction style of this plane widget is to select the plane with the left mouse button to translate the plane, and to select the normal ax…

---

## [Deprecate vtkOggTheoraWriter?](https://discourse.vtk.org/t/deprecate-vtkoggtheorawriter/11107)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.vtk.org/u/seanm)\
**Replies:** 3\
**Last updated:** [June 6, 2023, 9:23pm UTC](https://discourse.vtk.org/t/deprecate-vtkoggtheorawriter/11107 "2023-06-06T21:23:03Z")

</div>

Hi all, The upstream theora project is alas moribund. I propose therefore that vtkOggTheoraWriter be deprecated: https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/10048 In the MR, reviewers suggested that I bring i…

---

## [Make 3D for RTDose](https://discourse.vtk.org/t/make-3d-for-rtdose/11612)

<div class="topic-metadata">

**Author:** [@A.M\_Shahpouri](https://discourse.vtk.org/u/A.M_Shahpouri)\
**Replies:** 0\
**Last updated:** [June 6, 2023, 7:43am UTC](https://discourse.vtk.org/t/make-3d-for-rtdose/11612 "2023-06-06T07:43:14Z")

</div>

Hi I want to make a 3D shape which show color by value range like volume I have a RTDose dicom file and I want to make a 3D shape like this: I tried that with volume . setting opacity and color of each range of val…

---

## [New \`ProcessIds\` data attribute for distributed algorithms](https://discourse.vtk.org/t/new-processids-data-attribute-for-distributed-algorithms/11383)

<div class="topic-metadata">

**Author:** [@charly\_bollinger](https://discourse.vtk.org/u/charly_bollinger)\
**Replies:** 15\
**Last updated:** [June 5, 2023, 7:58am UTC](https://discourse.vtk.org/t/new-processids-data-attribute-for-distributed-algorithms/11383 "2023-06-05T07:58:22Z")

</div>

Why When dealing with massive datasets, you need to use distributed algorithms to parallelize post-processing. When doing so, the data is distributed across multiple machines and, as such, each process has no knowledge o…

---

## [vtk Custom Filter Clarification:](https://discourse.vtk.org/t/vtk-custom-filter-clarification/11605)

<div class="topic-metadata">

**Author:** [@ramen-newdals](https://discourse.vtk.org/u/ramen-newdals)\
**Replies:** 3\
**Last updated:** [June 4, 2023, 12:53am UTC](https://discourse.vtk.org/t/vtk-custom-filter-clarification/11605 "2023-06-04T00:53:59Z")

</div>

Hello All, System: VTK-9.2, using gcc-12 I am working on developing some custom filters for vtk, to get started I am using the vtk examples as a guide this example specifically (https://examples.vtk.org/site/Cxx/Develo…

---

## [Why dynamic drawn polygon contain triangle strips?](https://discourse.vtk.org/t/why-dynamic-drawn-polygon-contain-triangle-strips/11606)

<div class="topic-metadata">

**Author:** [@Pisces2018](https://discourse.vtk.org/u/Pisces2018)\
**Replies:** 1\
**Last updated:** [June 3, 2023, 11:13pm UTC](https://discourse.vtk.org/t/why-dynamic-drawn-polygon-contain-triangle-strips/11606 "2023-06-03T23:13:54Z")

</div>

Hi,everyone, I want to dynamically draw a polygon in a vtkRenderWindow that contains the volume data. In this case, the polygon is closed and normal, but the drawing process will stuck because the volume data is also be…

---

## [vtkCellLocator::FindClosestPoint: returns incorrect results for certain dataset](https://discourse.vtk.org/t/vtkcelllocator-returns-incorrect-results-for-certain-dataset/11576)

<div class="topic-metadata">

**Author:** [@lukas](https://discourse.vtk.org/u/lukas)\
**Replies:** 7\
**Last updated:** [June 1, 2023, 5:16pm UTC](https://discourse.vtk.org/t/vtkcelllocator-returns-incorrect-results-for-certain-dataset/11576 "2023-06-01T17:16:55Z")

</div>

Hello, I am using the method vtkCellLocator::FindClosestPoint and get incorrect results for certain input point coordinates and polydata. The example code loads a polydata file and uses a vtkCellLocator to find the clo…

---

## [Volume disappears when mixing with polydata \[VTK 8.2 - bug\]](https://discourse.vtk.org/t/volume-disappears-when-mixing-with-polydata-vtk-8-2-bug/5873)

<div class="topic-metadata">

**Author:** [@Stephane-D](https://discourse.vtk.org/u/Stephane-D)\
**Replies:** 8\
**Last updated:** [June 1, 2023, 8:16am UTC](https://discourse.vtk.org/t/volume-disappears-when-mixing-with-polydata-vtk-8-2-bug/5873 "2023-06-01T08:16:40Z")

</div>

Hi, We are using VTK for 3D rendering in our image analysis software and lately we are trying to migrate to VTK 8.2 as the version we are using (VTK 6.3) isn’t anymore compatible on newer OSX system (because of the used…

---

## [Surface overlapping on DualDepthPeeling](https://discourse.vtk.org/t/surface-overlapping-on-dualdepthpeeling/11586)

<div class="topic-metadata">

**Author:** [@cnd](https://discourse.vtk.org/u/cnd)\
**Replies:** 0\
**Last updated:** [May 31, 2023, 2:42pm UTC](https://discourse.vtk.org/t/surface-overlapping-on-dualdepthpeeling/11586 "2023-05-31T14:42:05Z")

</div>

Using VTK 9.1 with enabled translucent depth peeling (using dual depth peeling pass) translucent surfaces are overlapping opaque ones (MITK-based code) I was strongly following example https://vtk.org/Wiki/VTK/Tuto…

---

## [IntersectWithLine potential bug](https://discourse.vtk.org/t/intersectwithline-potential-bug/11584)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 0\
**Last updated:** [May 31, 2023, 2:23pm UTC](https://discourse.vtk.org/t/intersectwithline-potential-bug/11584 "2023-05-31T14:23:45Z")

</div>

The method seems to work well in general but not in this case when the polydata is the output of vtkAppendPolyData: circles.vtk (51.1 KB) import vtk reader = vtk.vtkPolyDataReader() reader.SetFileName("circles.vtk") r…

---

## [Feature request: add ACVD uniform remeshing filter](https://discourse.vtk.org/t/feature-request-add-acvd-uniform-remeshing-filter/10346)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.vtk.org/u/lassoan)\
**Replies:** 9\
**Last updated:** [May 30, 2023, 7:26am UTC](https://discourse.vtk.org/t/feature-request-add-acvd-uniform-remeshing-filter/10346 "2023-05-30T07:26:34Z")

</div>

A robust, high-quality uniform remeshing filter is an essential tool in any mesh modelling library. I know that VTK was originally not meant for modelling and probably there was no known open-source algorithm for uniform…

---

## [About spacing of ImageData when implementing the scissors tool](https://discourse.vtk.org/t/about-spacing-of-imagedata-when-implementing-the-scissors-tool/11563)

<div class="topic-metadata">

**Author:** [@dbtruong](https://discourse.vtk.org/u/dbtruong)\
**Replies:** 1\
**Last updated:** [May 30, 2023, 1:24am UTC](https://discourse.vtk.org/t/about-spacing-of-imagedata-when-implementing-the-scissors-tool/11563 "2023-05-30T01:24:24Z")

</div>

Hello, I am using VTK for building a function of cropping freehand. My code is below (source: qSlicerSegmentEditorScissorsEffect.cxx) # Step 1: Drawing a 2D contour on the screen # Step 2: Mapping display space points t…

---

## [GPU rendering error on MacOS](https://discourse.vtk.org/t/gpu-rendering-error-on-macos/11528)

<div class="topic-metadata">

**Author:** [@Pisces2018](https://discourse.vtk.org/u/Pisces2018)\
**Replies:** 2\
**Last updated:** [May 29, 2023, 7:17am UTC](https://discourse.vtk.org/t/gpu-rendering-error-on-macos/11528 "2023-05-29T07:17:49Z")

</div>

When the 3D window was first opened, it rendered normal in default GPU mode. When I perform the cut bedplate operation(just change the pixel value in the volume data), the render is abnormal. Windows OS, render is norma…

---

## [How to fix 3D data viewing angle setting](https://discourse.vtk.org/t/how-to-fix-3d-data-viewing-angle-setting/11508)

<div class="topic-metadata">

**Author:** [@Seram](https://discourse.vtk.org/u/Seram)\
**Replies:** 4\
**Last updated:** [May 27, 2023, 1:24pm UTC](https://discourse.vtk.org/t/how-to-fix-3d-data-viewing-angle-setting/11508 "2023-05-27T13:24:04Z")

</div>

Hello, I always get a lot of help. I have one question for you. I am using VTK 8.9 Version and I am developing a program with Visual Studio 2015 MFC (C++). And I’m showing 3D data in Picture Control. I want to see t…

---

## [Possible Error in vtkCocoaGLView.mm](https://discourse.vtk.org/t/possible-error-in-vtkcocoaglview-mm/11547)

<div class="topic-metadata">

**Author:** [@aschrempf](https://discourse.vtk.org/u/aschrempf)\
**Replies:** 1\
**Last updated:** [May 27, 2023, 12:56pm UTC](https://discourse.vtk.org/t/possible-error-in-vtkcocoaglview-mm/11547 "2023-05-27T12:56:24Z")

</div>

Hi there! Thanks for developing VTK! Actually im using vtk 9.2.6 on a new M2 (Mac mini 2023) on macOS Ventura (SDK 13.1, Ventura 13.4) and within my app an error occurs when destructing an QVTKOpenGLNativeWidget with Q…

---

## [Making a surface using polylines](https://discourse.vtk.org/t/making-a-surface-using-polylines/11536)

<div class="topic-metadata">

**Author:** [@Sai\_Chaitanya\_Rodda](https://discourse.vtk.org/u/Sai_Chaitanya_Rodda)\
**Replies:** 2\
**Last updated:** [May 26, 2023, 3:29am UTC](https://discourse.vtk.org/t/making-a-surface-using-polylines/11536 "2023-05-26T03:29:48Z")

</div>

Hello Everyone, Greetings! I have polylines in my polydata which are curved and kind of parllel to each other as shown in the bottom fig. Now, I want to create a surface using the lines which should be like this as …

---

## [How to determine the CMake VTK "COMPONENTS" necessary for a class?](https://discourse.vtk.org/t/how-to-determine-the-cmake-vtk-components-necessary-for-a-class/11429)

<div class="topic-metadata">

**Author:** [@rexthor](https://discourse.vtk.org/u/rexthor)\
**Replies:** 8\
**Last updated:** [May 24, 2023, 5:54pm UTC](https://discourse.vtk.org/t/how-to-determine-the-cmake-vtk-components-necessary-for-a-class/11429 "2023-05-24T17:54:45Z")

</div>

I haven’t written a CMakeLists.txt file for VTK in a while, and things seem to have evolved somewhat. I’m sure that the reasons are important, and the results are great, but it did take me a while to figure out why I was…

---

## [vtkobjImporter](https://discourse.vtk.org/t/vtkobjimporter/11531)

<div class="topic-metadata">

**Author:** [@xu\_siang](https://discourse.vtk.org/u/xu_siang)\
**Replies:** 1\
**Last updated:** [May 24, 2023, 9:16am UTC](https://discourse.vtk.org/t/vtkobjimporter/11531 "2023-05-24T09:16:31Z")

</div>

hello， I want to import obj and mtl files in python-vtk 8.1.2,but I find the texture picture in mtl is not be loaded. This is my code: import vtk def main(): objimporter = vtk.vtkOBJImporter() objimporter.SetFileN…

---

## [Multiple output types](https://discourse.vtk.org/t/multiple-output-types/11518)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 3\
**Last updated:** [May 23, 2023, 10:41pm UTC](https://discourse.vtk.org/t/multiple-output-types/11518 "2023-05-23T22:41:46Z")

</div>

I am developing a filter which I would like to output whatever the downstream filter can take as input. When calling RequestDataObject, I can set the output type to something based on the upstream filter, but the downst…

---

## [Improvement to vtkDepthImageToPointCloud](https://discourse.vtk.org/t/improvement-to-vtkdepthimagetopointcloud/11503)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 0\
**Last updated:** [May 21, 2023, 8:44pm UTC](https://discourse.vtk.org/t/improvement-to-vtkdepthimagetopointcloud/11503 "2023-05-21T20:44:54Z")

</div>

Hi guys I have made a new class vtkRendererToRectilinearGrid. It can be used for generating a grid output, where the depth coordinate is an attribute ZValues. The output can be passed to a vtkWarpScalar to generate a s…

---

## [Questions about Slicer Coordinates](https://discourse.vtk.org/t/questions-about-slicer-coordinates/11485)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 6\
**Last updated:** [May 21, 2023, 3:22am UTC](https://discourse.vtk.org/t/questions-about-slicer-coordinates/11485 "2023-05-21T03:22:53Z")

</div>

This is the image information I read and printed from DCM images through ITK Based on the calculation, I found that the physical spatial coordinates should be at (-420, -140, -420, -140, -140，140) Why is the coord…

---

## [I want to know how the slicer can display two sets of images at the same timeI want to know how the slicer can display two sets of images at the same time](https://discourse.vtk.org/t/i-want-to-know-how-the-slicer-can-display-two-sets-of-images-at-the-same-timei-want-to-know-how-the-slicer-can-display-two-sets-of-images-at-the-same-time/11486)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 1\
**Last updated:** [May 20, 2023, 4:38am UTC](https://discourse.vtk.org/t/i-want-to-know-how-the-slicer-can-display-two-sets-of-images-at-the-same-timei-want-to-know-how-the-slicer-can-display-two-sets-of-images-at-the-same-time/11486 "2023-05-20T04:38:34Z")

</div>

I want to know how slicer can display two sets of images in a vtk window and can set Opacity. And they can interact with the slicer at the same time, I want to display two sets of mpr images in a vtk window. I ran into s…

---

## [How to make mesliced images have real physical coordinates？](https://discourse.vtk.org/t/how-to-make-mesliced-images-have-real-physical-coordinates/11496)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 1\
**Last updated:** [May 20, 2023, 3:57am UTC](https://discourse.vtk.org/t/how-to-make-mesliced-images-have-real-physical-coordinates/11496 "2023-05-20T03:57:47Z")

</div>

How to correspond the coordinate points of this 2D image to the 3D volume data when using vtkImageResulice to re slice, that is, the coordinates of points that appear to be the same are the same. If I set it to correspon…

---

## [Support for COPC and Entwine formats?](https://discourse.vtk.org/t/support-for-copc-and-entwine-formats/11465)

<div class="topic-metadata">

**Author:** [@rcm](https://discourse.vtk.org/u/rcm)\
**Replies:** 7\
**Last updated:** [May 17, 2023, 3:05pm UTC](https://discourse.vtk.org/t/support-for-copc-and-entwine-formats/11465 "2023-05-17T15:05:52Z")

</div>

Does VTK support rendering of pointclouds from COPC/Entwine sources with a “point budget”? Similar to potree, where points further down the octree are downloaded/rendered as you zoom in to an area. My end goal is to mak…

---

## [vtkStaticCellLocator problem (vtk9.0.3)](https://discourse.vtk.org/t/vtkstaticcelllocator-problem-vtk9-0-3/7854)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 18\
**Last updated:** [May 16, 2023, 3:05pm UTC](https://discourse.vtk.org/t/vtkstaticcelllocator-problem-vtk9-0-3/7854 "2023-05-16T15:05:37Z")

</div>

I observe something strange in vtkStaticCellLocator.FindClosestPoint() vs vtkCellLocator.FindClosestPoint(): with vtkStaticCellLocator (wrong): with vtkCellLocator (correct): from vedo import \* # Load and cut m…

---

## [Question about vtkOpenGLRenderWindow function added SetFrameBlitMode](https://discourse.vtk.org/t/question-about-vtkopenglrenderwindow-function-added-setframeblitmode/11456)

<div class="topic-metadata">

**Author:** [@stavbodik](https://discourse.vtk.org/u/stavbodik)\
**Replies:** 2\
**Last updated:** [May 15, 2023, 11:51am UTC](https://discourse.vtk.org/t/question-about-vtkopenglrenderwindow-function-added-setframeblitmode/11456 "2023-05-15T11:51:17Z")

</div>

Hi All in this MR SetFrameBlitMode was added to vtkOpenGLRenderWindow :slight\_smile: I had a problem where rendering Volume with vtkFixedPointVolumeRayCastMapper on MAC with Windows Parallels and graphic card "Paralle…

---

## [vtkGUISupportQtQuickCxxTests error](https://discourse.vtk.org/t/vtkguisupportqtquickcxxtests-error/11449)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 2\
**Last updated:** [May 14, 2023, 12:47pm UTC](https://discourse.vtk.org/t/vtkguisupportqtquickcxxtests-error/11449 "2023-05-14T12:47:24Z")

</div>

Available tests: 0. TestQQuickVTKRenderItem 1. TestQQuickVTKRenderItemWidget 2. TestQQuickVTKRenderWindow To run a test, enter the test number: 1 CTEST\_FULL\_OUTPUT (Avoid ctest truncation of output) QML2\_IMPORT\_PAT…

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

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