# Development

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

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

**Page:** 23

---

## [Face a crash problem in using "vtkProperty-\>Deepcopy()"](https://discourse.vtk.org/t/face-a-crash-problem-in-using-vtkproperty-deepcopy/11135)

<div class="topic-metadata">

**Author:** [@Yola](https://discourse.vtk.org/u/Yola)\
**Replies:** 0\
**Last updated:** [April 5, 2023, 6:31am UTC](https://discourse.vtk.org/t/face-a-crash-problem-in-using-vtkproperty-deepcopy/11135 "2023-04-05T06:31:16Z")

</div>

I want to highlight the actor when I press my mouse’s left button. So I wrote a subclass of vtkInteractorStyle. The code lists here: void ModelViewerInteractor::OnLeftButtonDown() { vtkNew\<vtkNamedColors\> colors; …

---

## [What should I do to obtain such a display result？](https://discourse.vtk.org/t/what-should-i-do-to-obtain-such-a-display-result/11125)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 1\
**Last updated:** [April 4, 2023, 11:37am UTC](https://discourse.vtk.org/t/what-should-i-do-to-obtain-such-a-display-result/11125 "2023-04-04T11:37:33Z")

</div>

I don’t know how to generate a single color image.

---

## [vtkImplicitSelectionLoop and sharp corners - potential bug?](https://discourse.vtk.org/t/vtkimplicitselectionloop-and-sharp-corners-potential-bug/11105)

<div class="topic-metadata">

**Author:** [@ugis](https://discourse.vtk.org/u/ugis)\
**Replies:** 3\
**Last updated:** [April 3, 2023, 3:02pm UTC](https://discourse.vtk.org/t/vtkimplicitselectionloop-and-sharp-corners-potential-bug/11105 "2023-04-03T15:02:11Z")

</div>

Hi Developers, I am trying to get around the issue, which was observed already 3 years ago (vtkImplicitSelectionLoop does not work as expected). To shortly summarize, the issue is that vtkImplicitSelectionLoop works poo…

---

## [Update on Vulkan Support](https://discourse.vtk.org/t/update-on-vulkan-support/2819)

<div class="topic-metadata">

**Author:** [@Michael\_Jackson](https://discourse.vtk.org/u/Michael_Jackson)\
**Replies:** 19\
**Last updated:** [April 1, 2023, 4:22pm UTC](https://discourse.vtk.org/t/update-on-vulkan-support/2819 "2023-04-01T16:22:04Z")

</div>

Is there any kind of roadmap or update on supporting either macOS Metal or Vulkan in VTK? Time is marching on and at some point sooner rather that later those of us trying to support macOS will have a decision to make re…

---

## [A strange slice during MPR](https://discourse.vtk.org/t/a-strange-slice-during-mpr/11099)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 1\
**Last updated:** [April 1, 2023, 2:38pm UTC](https://discourse.vtk.org/t/a-strange-slice-during-mpr/11099 "2023-04-01T14:38:30Z")

</div>

My goal is to have two sets of mpr images. The driven mpr completely follows the active mpr. I synchronize vtkResliceCursor to complete the synchronization, but some unexpected images may appear at certain locations. W…

---

## [Setting scalar range in vtkPolyDataMapper - vtkLookupTable vs vtkColorTransferFunction](https://discourse.vtk.org/t/setting-scalar-range-in-vtkpolydatamapper-vtklookuptable-vs-vtkcolortransferfunction/11089)

<div class="topic-metadata">

**Author:** [@ashishgupta79](https://discourse.vtk.org/u/ashishgupta79)\
**Replies:** 0\
**Last updated:** [March 29, 2023, 9:15pm UTC](https://discourse.vtk.org/t/setting-scalar-range-in-vtkpolydatamapper-vtklookuptable-vs-vtkcolortransferfunction/11089 "2023-03-29T21:15:17Z")

</div>

Hi I am trying to setup a poly mapper with a lookup table or a color transfer function. If I use a lookup table, then setting the SetScalarRange is used if UseLookupTableScalrRange is False and not when UseLookupTableS…

---

## [How can Make 3D & 2D Countor from DICOM(RTStrucure) file?](https://discourse.vtk.org/t/how-can-make-3d-2d-countor-from-dicom-rtstrucure-file/11071)

<div class="topic-metadata">

**Author:** [@A.M\_Shahpouri](https://discourse.vtk.org/u/A.M_Shahpouri)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 5:28pm UTC](https://discourse.vtk.org/t/how-can-make-3d-2d-countor-from-dicom-rtstrucure-file/11071 "2023-03-28T17:28:35Z")

</div>

Hi I want to read DICOM which have RTstrucure Data (Data of organ countor) and show 3D of that and show 2D view by resliceing (vtkImageResliceMapper). I has tried this way =\> read point data List of \> each sl…

---

## [How can I Rotate VTKImageSlice ?](https://discourse.vtk.org/t/how-can-i-rotate-vtkimageslice/10689)

<div class="topic-metadata">

**Author:** [@A.M\_Shahpouri](https://discourse.vtk.org/u/A.M_Shahpouri)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 1:01pm UTC](https://discourse.vtk.org/t/how-can-i-rotate-vtkimageslice/10689 "2023-03-27T13:01:48Z")

</div>

Hi I have problem in Reslicing With vtkPlane I want to reslice in 4 axes-\>(Axial , Sagittal , Coronal , oblique ) with vtkPlane , so I use vtkImageReliceMapper and set Plane for each one . Then I make vtkImageSlice …

---

## [How can I make a Pyramid ?](https://discourse.vtk.org/t/how-can-i-make-a-pyramid/10690)

<div class="topic-metadata">

**Author:** [@A.M\_Shahpouri](https://discourse.vtk.org/u/A.M_Shahpouri)\
**Replies:** 4\
**Last updated:** [March 27, 2023, 1:01pm UTC](https://discourse.vtk.org/t/how-can-i-make-a-pyramid/10690 "2023-03-27T13:01:14Z")

</div>

Hi How Can I make a Pyramid and get It’s vtkImageData ? (I want vtkImageData of my Pyramid) Thanks a lot :))

---

## [Can vtk file or vtp file save texture image, or can we write mtl file to reference texture image like obj file?](https://discourse.vtk.org/t/can-vtk-file-or-vtp-file-save-texture-image-or-can-we-write-mtl-file-to-reference-texture-image-like-obj-file/11056)

<div class="topic-metadata">

**Author:** [@Ericsson-paul](https://discourse.vtk.org/u/Ericsson-paul)\
**Replies:** 8\
**Last updated:** [March 27, 2023, 12:47pm UTC](https://discourse.vtk.org/t/can-vtk-file-or-vtp-file-save-texture-image-or-can-we-write-mtl-file-to-reference-texture-image-like-obj-file/11056 "2023-03-27T12:47:52Z")

</div>

When we write a vtk file or vtp file, we can only save the texture coordinates in the file, and the texture image needs to be added to the role at rendering time via SetTexture. w I want to introduce a link to the textur…

---

## [Basic ITK / VTK Example](https://discourse.vtk.org/t/basic-itk-vtk-example/10982)

<div class="topic-metadata">

**Author:** [@davidshq](https://discourse.vtk.org/u/davidshq)\
**Replies:** 1\
**Last updated:** [March 24, 2023, 1:30pm UTC](https://discourse.vtk.org/t/basic-itk-vtk-example/10982 "2023-03-24T13:30:22Z")

</div>

I’m working on a new Vue 3.x app that utilizes VTK.js (and ITK-wasm). I’m keeping the old branches as they demonstrate different levels of integration - starting with the most simplistic. I know I’ll forget how I accompl…

---

## [VTK multi RenderWindow and RenderItem in QML](https://discourse.vtk.org/t/vtk-multi-renderwindow-and-renderitem-in-qml/10985)

<div class="topic-metadata">

**Author:** [@praveenkumar](https://discourse.vtk.org/u/praveenkumar)\
**Replies:** 4\
**Last updated:** [March 22, 2023, 3:43pm UTC](https://discourse.vtk.org/t/vtk-multi-renderwindow-and-renderitem-in-qml/10985 "2023-03-22T15:43:30Z")

</div>

I’m Trying to display Multi Render item in QML. I created 2x2 grid layout with 4 rectangle and 4 Render window and Render Item, but it was displaying only one at a time. If I try with 1 Render Window with 4 Render I…

---

## [Open position - Surgical Navigation Software Engineer](https://discourse.vtk.org/t/open-position-surgical-navigation-software-engineer/11018)

<div class="topic-metadata">

**Author:** [@ClaroNavKolahiInc](https://discourse.vtk.org/u/ClaroNavKolahiInc)\
**Replies:** 1\
**Last updated:** [March 21, 2023, 8:16pm UTC](https://discourse.vtk.org/t/open-position-surgical-navigation-software-engineer/11018 "2023-03-21T20:16:41Z")

</div>

Looking for a challenging and rewarding position in the medical device field? Location: Toronto, Canada Description: ClaroNav Kolahi Inc. (CKI) is offering a unique opportunity for a talented software engineer to parti…

---

## [Is this a memory leak](https://discourse.vtk.org/t/is-this-a-memory-leak/10997)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 2\
**Last updated:** [March 19, 2023, 12:20am UTC](https://discourse.vtk.org/t/is-this-a-memory-leak/10997 "2023-03-19T00:20:06Z")

</div>

vtkDebugLeaks has detected LEAKS! Class “vtkMinimalStandardRandomSequence” has 1 instance still around. Class “vtkCellArray” has 1 instance still around. Class “vtkBoxMuellerRandomSequence” has 1 instance still around…

---

## [VTK import is confusing in VTK tests](https://discourse.vtk.org/t/vtk-import-is-confusing-in-vtk-tests/10746)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.vtk.org/u/lassoan)\
**Replies:** 9\
**Last updated:** [March 17, 2023, 3:51am UTC](https://discourse.vtk.org/t/vtk-import-is-confusing-in-vtk-tests/10746 "2023-03-17T03:51:16Z")

</div>

VTK tests have been recently reworked to improve robustness of VTK test execution. Unfortunately, this change has also made importing VTK into Python extremely complicated. This would be OK if only VTK core developers wo…

---

## [Show a PLY Pointcloud](https://discourse.vtk.org/t/show-a-ply-pointcloud/10889)

<div class="topic-metadata">

**Author:** [@juanilogo](https://discourse.vtk.org/u/juanilogo)\
**Replies:** 1\
**Last updated:** [March 16, 2023, 8:38pm UTC](https://discourse.vtk.org/t/show-a-ply-pointcloud/10889 "2023-03-16T20:38:04Z")

</div>

Hello, I want to see my pointcloud from a .ply file comming from a 3D scanner. (no cells) With the curren configuration I kan see something but not what desired. I want to see every point as a small sphere or point. D…

---

## [ExitCallback() closes the window](https://discourse.vtk.org/t/exitcallback-closes-the-window/10949)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 2\
**Last updated:** [March 14, 2023, 1:29am UTC](https://discourse.vtk.org/t/exitcallback-closes-the-window/10949 "2023-03-14T01:29:34Z")

</div>

I notice this unexpected behavior, calling iren.ExitCallback() closes the rendering window which pops up again at the next iren.Start(): import time import vtk cone = vtk.vtkConeSource() mapper = vtk.vtkPolyDataMapper(…

---

## [Removing prop handles](https://discourse.vtk.org/t/removing-prop-handles/10954)

<div class="topic-metadata">

**Author:** [@Manju](https://discourse.vtk.org/u/Manju)\
**Replies:** 0\
**Last updated:** [March 13, 2023, 11:07am UTC](https://discourse.vtk.org/t/removing-prop-handles/10954 "2023-03-13T11:07:15Z")

</div>

I have an image actor on which different tools like distance or angle may be placed. Trying to integrate a feature where user can remove individual tools by clicking on them. It is Qt IDE language c++. Below is my code s…

---

## [render-\>GetZ(x,y) error](https://discourse.vtk.org/t/render-getz-x-y-error/10908)

<div class="topic-metadata">

**Author:** [@Ren](https://discourse.vtk.org/u/Ren)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 10:21pm UTC](https://discourse.vtk.org/t/render-getz-x-y-error/10908 "2023-03-10T22:21:51Z")

</div>

Dear People, I use render-\>GetZ(x, y) to get the Z value of my mouse in screen, but it can’t work, it will give an error in vtk window vtkOpenGLState.cxx:203 WARN| Error in cache state for GL\_READ\_FRAMEBUFFER\_BINDING …

---

## [Add vtkDataset::GetPoints function](https://discourse.vtk.org/t/add-vtkdataset-getpoints-function/10920)

<div class="topic-metadata">

**Author:** [@spyridon97](https://discourse.vtk.org/u/spyridon97)\
**Replies:** 18\
**Last updated:** [March 10, 2023, 3:29pm UTC](https://discourse.vtk.org/t/add-vtkdataset-getpoints-function/10920 "2023-03-10T15:29:16Z")

</div>

Hello everyone I would like to add a vtkDataSet::GetPoints function that computes the points array and return it. I would like to do that to avoid using GetPoint() since it performs a computation at each call for vtkIm…

---

## [vtkCornerAnnotation Why do I use this to make the program become stuck？](https://discourse.vtk.org/t/vtkcornerannotation-why-do-i-use-this-to-make-the-program-become-stuck/10934)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 2:04pm UTC](https://discourse.vtk.org/t/vtkcornerannotation-why-do-i-use-this-to-make-the-program-become-stuck/10934 "2023-03-10T14:04:39Z")

</div>

Am I using it incorrectly? I just call SetText and update it. It has a great impact on my program performance.

---

## [How to display volume rendering of large volume Images](https://discourse.vtk.org/t/how-to-display-volume-rendering-of-large-volume-images/10375)

<div class="topic-metadata">

**Author:** [@tong\_yang](https://discourse.vtk.org/u/tong_yang)\
**Replies:** 10\
**Last updated:** [March 7, 2023, 7:50am UTC](https://discourse.vtk.org/t/how-to-display-volume-rendering-of-large-volume-images/10375 "2023-03-07T07:50:04Z")

</div>

Hello, I have been learning VTK for one year. This is my first question. I met some questions about the visualization of large capacity images, about 50GB，100GB，500GB，1TB. These are some TIFF microscopic images, so the i…

---

## [CropPolyData for a new "Surface Patch Selection Widget"](https://discourse.vtk.org/t/croppolydata-for-a-new-surface-patch-selection-widget/10879)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 0\
**Last updated:** [March 4, 2023, 1:30pm UTC](https://discourse.vtk.org/t/croppolydata-for-a-new-surface-patch-selection-widget/10879 "2023-03-04T13:30:22Z")

</div>

Hi Developers I am trying to create a widget similar to the vtkContourWidget for selecting vtkPolyData along a contour. For this, I created a new implicit function for clipping, vtkCapsule When updating the contour,…

---

## [Possible error in computing cell derivatives/Green Lagrange Strain](https://discourse.vtk.org/t/possible-error-in-computing-cell-derivatives-green-lagrange-strain/10788)

<div class="topic-metadata">

**Author:** [@aabrown100-git](https://discourse.vtk.org/u/aabrown100-git)\
**Replies:** 1\
**Last updated:** [March 3, 2023, 5:10pm UTC](https://discourse.vtk.org/t/possible-error-in-computing-cell-derivatives-green-lagrange-strain/10788 "2023-03-03T17:10:33Z")

</div>

I believe there is an error in computing Green Lagrange strain. In the attached code, I am deforming a triangulated sphere with a uniform dilation. The Green Lagrange strain should be diagonal, but it is not. I have chec…

---

## [the actor becomes abnormal in display.](https://discourse.vtk.org/t/the-actor-becomes-abnormal-in-display/10849)

<div class="topic-metadata">

**Author:** [@seeby](https://discourse.vtk.org/u/seeby)\
**Replies:** 0\
**Last updated:** [March 2, 2023, 6:54am UTC](https://discourse.vtk.org/t/the-actor-becomes-abnormal-in-display/10849 "2023-03-02T06:54:20Z")

</div>

the actor becomes abnormal in display. when zooming the actors, the bone actor become blue (the color of the knife actor) when the knife actor is out of the view. who knows the cause of this phenomenon？

---

## [Shortcut for generic access to index buffer](https://discourse.vtk.org/t/shortcut-for-generic-access-to-index-buffer/10776)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 2\
**Last updated:** [March 1, 2023, 7:11am UTC](https://discourse.vtk.org/t/shortcut-for-generic-access-to-index-buffer/10776 "2023-03-01T07:11:48Z")

</div>

Hi Developers I have made a small raycaster using Embree. For the initial concept, I use // Access to points. I know this is not a viable solution. In my small test example, my polydata is the output from a vtkSphereSo…

---

## [Using itk-vtk-viewer from local build](https://discourse.vtk.org/t/using-itk-vtk-viewer-from-local-build/10546)

<div class="topic-metadata">

**Author:** [@Kevin\_Sweeney](https://discourse.vtk.org/u/Kevin_Sweeney)\
**Replies:** 5\
**Last updated:** [February 28, 2023, 10:33am UTC](https://discourse.vtk.org/t/using-itk-vtk-viewer-from-local-build/10546 "2023-02-28T10:33:28Z")

</div>

(Newbie question) I want to be able to make changes to itk-vtk-viewer and test the new code within my current project. (Geometry / Point selection · Issue #575 · Kitware/itk-vtk-viewer · GitHub) I have forked the repo …

---

## [On the coordinate transformation of vtk and itk](https://discourse.vtk.org/t/on-the-coordinate-transformation-of-vtk-and-itk/10810)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 7\
**Last updated:** [February 28, 2023, 2:41pm UTC](https://discourse.vtk.org/t/on-the-coordinate-transformation-of-vtk-and-itk/10810 "2023-02-28T14:41:02Z")

</div>

The program I wrote uses itk image to read dicom image, and uses vtk to display it. What transformation should I make to make vtk display correctly? I know to use 0020 0037 tag to correct it. Can anyone tell me the detai…

---

## [Using namespaces in VTK](https://discourse.vtk.org/t/using-namespaces-in-vtk/10826)

<div class="topic-metadata">

**Author:** [@dcthomp](https://discourse.vtk.org/u/dcthomp)\
**Replies:** 0\
**Last updated:** [February 27, 2023, 2:29pm UTC](https://discourse.vtk.org/t/using-namespaces-in-vtk/10826 "2023-02-27T14:29:52Z")

</div>

For those of you developing code you hope to merge into VTK, do not include using namespace nlohmann in your code. avoid using namespace … in general. however it is OK to use namespaces with string-literal and place…

---

## [Exceptions when trying to compute center lines using vtkvmtkPolyDataCenterlines](https://discourse.vtk.org/t/exceptions-when-trying-to-compute-center-lines-using-vtkvmtkpolydatacenterlines/10814)

<div class="topic-metadata">

**Author:** [@rmacule](https://discourse.vtk.org/u/rmacule)\
**Replies:** 0\
**Last updated:** [February 26, 2023, 8:04pm UTC](https://discourse.vtk.org/t/exceptions-when-trying-to-compute-center-lines-using-vtkvmtkpolydatacenterlines/10814 "2023-02-26T20:04:02Z")

</div>

If I use the following code I get exceptions when calling the vtkvmtkPolyDataCenterlines-\>update() method: // Read file vtkSmartPointer\<vtkXMLImageDataReader\> reader = vtkSmartPointer\<vtkXMLImageDataReader\>::New…

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

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