# Development

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

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

**Page:** 24

---

## [Crash using 'vtk vmtk Threshold Segmentation Level Set Image Filter'](https://discourse.vtk.org/t/crash-using-vtk-vmtk-threshold-segmentation-level-set-image-filter/10812)

<div class="topic-metadata">

**Author:** [@rmacule](https://discourse.vtk.org/u/rmacule)\
**Replies:** 0\
**Last updated:** [February 26, 2023, 7:49pm UTC](https://discourse.vtk.org/t/crash-using-vtk-vmtk-threshold-segmentation-level-set-image-filter/10812 "2023-02-26T19:49:37Z")

</div>

If I use the attached vti file and the following code I get an exception. I would really appreciate any suggestions and/or guidance on how to resolve this :slight\_smile: CODE: vtkSmartPointer\<vtkXMLImageDataReader\> r…

---

## [Is there a way to read LSDyna keyword files (.k) directly in vtk?](https://discourse.vtk.org/t/is-there-a-way-to-read-lsdyna-keyword-files-k-directly-in-vtk/10817)

<div class="topic-metadata">

**Author:** [@Prakhar\_Singh](https://discourse.vtk.org/u/Prakhar_Singh)\
**Replies:** 0\
**Last updated:** [February 26, 2023, 11:19pm UTC](https://discourse.vtk.org/t/is-there-a-way-to-read-lsdyna-keyword-files-k-directly-in-vtk/10817 "2023-02-26T23:19:31Z")

</div>

I am a beginner in computer graphics and vtk. I have a directory with .k files containing mesh data which I want to visualize using vtk. I have particularly following doubts: Can .k files be read using vtk ? If yes, ho…

---

## [Can I use compressed texture image files in C++ VTK?](https://discourse.vtk.org/t/can-i-use-compressed-texture-image-files-in-c-vtk/10783)

<div class="topic-metadata">

**Author:** [@araato](https://discourse.vtk.org/u/araato)\
**Replies:** 2\
**Last updated:** [February 24, 2023, 8:42am UTC](https://discourse.vtk.org/t/can-i-use-compressed-texture-image-files-in-c-vtk/10783 "2023-02-24T08:42:51Z")

</div>

Hello everyone, I would like to know if it is possible to use texture image files in .ktx2 or .basisu format in C++ VTK (not VTK.js). If it is not implemented yet, how can I approach it?

---

## [Minimum resource requirment](https://discourse.vtk.org/t/minimum-resource-requirment/10737)

<div class="topic-metadata">

**Author:** [@Zaid\_Ahmed](https://discourse.vtk.org/u/Zaid_Ahmed)\
**Replies:** 1\
**Last updated:** [February 24, 2023, 12:45am UTC](https://discourse.vtk.org/t/minimum-resource-requirment/10737 "2023-02-24T00:45:28Z")

</div>

I want to know about the minimum resource requirement to deploy it on ec2 instance. I’m deploying an API that convert dicom series to Vti and .vtkjs file for 3d web rendering using itk and vtk library (python), but I’m …

---

## [vtkResliceImageViewer doesn't work with QQuickVTKItem](https://discourse.vtk.org/t/vtkresliceimageviewer-doesnt-work-with-qquickvtkitem/10739)

<div class="topic-metadata">

**Author:** [@gevorgyan2.7.99](https://discourse.vtk.org/u/gevorgyan2.7.99)\
**Replies:** 5\
**Last updated:** [February 23, 2023, 9:43pm UTC](https://discourse.vtk.org/t/vtkresliceimageviewer-doesnt-work-with-qquickvtkitem/10739 "2023-02-23T21:43:25Z")

</div>

Hi all. I use the QQuickVTKItem module in my QtQuick pet-project, simple object rendering and even voxel rendering work fine! But the trouble with 2d DICOM images :frowning: I tried different solutions, and replacing …

---

## [vtkIntersectionPolyDataFilter crashing](https://discourse.vtk.org/t/vtkintersectionpolydatafilter-crashing/9428)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 5\
**Last updated:** [February 23, 2023, 7:35pm UTC](https://discourse.vtk.org/t/vtkintersectionpolydatafilter-crashing/9428 "2023-02-23T19:35:09Z")

</div>

There might be a bug or numerical instability in the vtkIntersectionPolyDataFilter class: import numpy as np import vtk import vedo # crashing m1v = np.array(\[\[17903.93947473, 11418.12995419, 2572.68075251\],\[17889.4353…

---

## [About Image Orientation?](https://discourse.vtk.org/t/about-image-orientation/10771)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [February 23, 2023, 2:18pm UTC](https://discourse.vtk.org/t/about-image-orientation/10771 "2023-02-23T14:18:51Z")

</div>

I have a series of dicom files,when i read that series of dicom files with vtkImageReader, it display like flows: But i want to display it face to screen and like this: Do someone know how to compute the orientati…

---

## [How Can Rotate vtkimageData?](https://discourse.vtk.org/t/how-can-rotate-vtkimagedata/10760)

<div class="topic-metadata">

**Author:** [@m.h.shanazary](https://discourse.vtk.org/u/m.h.shanazary)\
**Replies:** 1\
**Last updated:** [February 22, 2023, 2:46pm UTC](https://discourse.vtk.org/t/how-can-rotate-vtkimagedata/10760 "2023-02-22T14:46:44Z")

</div>

Hi I Try To Rotate Image Data In First Try I rotate Image Actor In Image Viewer2 But in try to get position Of Pixel with cell picker failed position so Wrong And Value Of Pixel its wrong. I try to rotate image data wi…

---

## [vtkMetaImageReader: getting additional (arbitrary) meta tags?](https://discourse.vtk.org/t/vtkmetaimagereader-getting-additional-arbitrary-meta-tags/10728)

<div class="topic-metadata">

**Author:** [@Ingmar](https://discourse.vtk.org/u/Ingmar)\
**Replies:** 4\
**Last updated:** [February 20, 2023, 9:13pm UTC](https://discourse.vtk.org/t/vtkmetaimagereader-getting-additional-arbitrary-meta-tags/10728 "2023-02-20T21:13:20Z")

</div>

MetaIO image files may contain various tags (such as https://itk.org/Wiki/ITK/MetaIO/Documentation#Associated\_transformations and https://itk.org/Wiki/ITK/MetaIO/Documentation#Reference:\_Tags\_of\_MetaImage) such as Cente…

---

## [Clipping problem with VTK 8.2, MINGW 64Bit and QT 5.14.2](https://discourse.vtk.org/t/clipping-problem-with-vtk-8-2-mingw-64bit-and-qt-5-14-2/10681)

<div class="topic-metadata">

**Author:** [@Newkid](https://discourse.vtk.org/u/Newkid)\
**Replies:** 1\
**Last updated:** [February 19, 2023, 2:39pm UTC](https://discourse.vtk.org/t/clipping-problem-with-vtk-8-2-mingw-64bit-and-qt-5-14-2/10681 "2023-02-19T14:39:44Z")

</div>

I’ve been trying to clip a multi-actors mesh with clipPolyData, the expected outcome looks like as following in ParaView. Anyway, I follow the VTK example named “CapClip” to create the clipping function , it seems th…

---

## [Embree in progress](https://discourse.vtk.org/t/embree-in-progress/10715)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 1\
**Last updated:** [February 16, 2023, 10:59pm UTC](https://discourse.vtk.org/t/embree-in-progress/10715 "2023-02-16T22:59:11Z")

</div>

Hi Guys I am working on making CPU raycasting within VTK using Embree, The code below works great now. What would be the best way to “steal” vertexBuffers and indexBuffers. I am thinking the capability to do real-time …

---

## [Scaling a Nifti Volume](https://discourse.vtk.org/t/scaling-a-nifti-volume/10658)

<div class="topic-metadata">

**Author:** [@totte\_karlsson](https://discourse.vtk.org/u/totte_karlsson)\
**Replies:** 5\
**Last updated:** [February 14, 2023, 9:21pm UTC](https://discourse.vtk.org/t/scaling-a-nifti-volume/10658 "2023-02-14T21:21:16Z")

</div>

Hello, When reading a volume as a TIFF stack using the vtkTiffReader the size of the volume can be scaled using the readers SetDataSpacing function. However, when reading a Nifti volume, using the Nifti reader, the Set…

---

## [Building VTK-9 with Emscripten+GLES for rendering](https://discourse.vtk.org/t/building-vtk-9-with-emscripten-gles-for-rendering/3038)

<div class="topic-metadata">

**Author:** [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)\
**Replies:** 10\
**Last updated:** [February 16, 2023, 6:27am UTC](https://discourse.vtk.org/t/building-vtk-9-with-emscripten-gles-for-rendering/3038 "2023-02-16T06:27:53Z")

</div>

I’m trying to port the excellent work that was done here on an old version of VTK to todays VTK while hoping it could make it to VTK 9. Steps to reproduce Getting the sources Create and go into a working directory for t…

---

## [Memory leak occurs if I use vtkSmartPointer in sub-thread.](https://discourse.vtk.org/t/memory-leak-occurs-if-i-use-vtksmartpointer-in-sub-thread/10631)

<div class="topic-metadata">

**Author:** [@sohnishi](https://discourse.vtk.org/u/sohnishi)\
**Replies:** 5\
**Last updated:** [February 16, 2023, 4:57am UTC](https://discourse.vtk.org/t/memory-leak-occurs-if-i-use-vtksmartpointer-in-sub-thread/10631 "2023-02-16T04:57:11Z")

</div>

I’m trying to create vtkPolyData from implicit functions. But this code makes memory leak if I use std::thread. Does anyone know the workarounds? I’m using Linux debian11 and vtk 9.0.1 on x86\_64 PC. #include \<iostrea…

---

## [How to determine the first vertex of a regular polygon drawn with vtk.vtkRegularPolygonSource()?](https://discourse.vtk.org/t/how-to-determine-the-first-vertex-of-a-regular-polygon-drawn-with-vtk-vtkregularpolygonsource/10691)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.vtk.org/u/jumbojing)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 12:40pm UTC](https://discourse.vtk.org/t/how-to-determine-the-first-vertex-of-a-regular-polygon-drawn-with-vtk-vtkregularpolygonsource/10691 "2023-02-15T12:40:35Z")

</div>

How to determine the first vertex of a regular polygon drawn with vtk.vtkRegularPolygonSource()? Or What is the projection direction of the coordinates of the first vertex of a regular polygon drawn with vtk.vtkRegula…

---

## [How to load PLY files based on POINT CLODE](https://discourse.vtk.org/t/how-to-load-ply-files-based-on-point-clode/10686)

<div class="topic-metadata">

**Author:** [@JYM](https://discourse.vtk.org/u/JYM)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 6:53am UTC](https://discourse.vtk.org/t/how-to-load-ply-files-based-on-point-clode/10686 "2023-02-15T06:53:20Z")

</div>

Hello I am trying to load the fly file from VTK 9.0. The language is using c++. Mesh-based data is loaded, but the point cloud ply file is not loaded. Can I have an example code? DATA FILE

---

## [How to volume rendering raw file what was wrrite by C++ stl;](https://discourse.vtk.org/t/how-to-volume-rendering-raw-file-what-was-wrrite-by-c-stl/10669)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 10:22pm UTC](https://discourse.vtk.org/t/how-to-volume-rendering-raw-file-what-was-wrrite-by-c-stl/10669 "2023-02-14T22:22:43Z")

</div>

I was write a raw file liking this: unsigned long FileSize = 0;//height \* width \* slices; const Uint16\* FileData = new Uint16(FileSize); metaInfo-\>findAndGetUint16Array(DCM\_PixelData, FileData, &FileSize); //\_strFileNam…

---

## [vtkRenderWindowInteractor on OSX](https://discourse.vtk.org/t/vtkrenderwindowinteractor-on-osx/10667)

<div class="topic-metadata">

**Author:** [@marcomusy](https://discourse.vtk.org/u/marcomusy)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 12:28am UTC](https://discourse.vtk.org/t/vtkrenderwindowinteractor-on-osx/10667 "2023-02-14T00:28:58Z")

</div>

The vtkRenderWindowInteractor class has some erratic behavior, on ubuntu I get a seg fault sometimes when interacting with the scene and pressing q at the same time. On OSX the rendering window doesn’t close unless anoth…

---

## [GitLab code review process and documentation updated](https://discourse.vtk.org/t/gitlab-code-review-process-and-documentation-updated/10271)

<div class="topic-metadata">

**Author:** [@mwestphal](https://discourse.vtk.org/u/mwestphal)\
**Replies:** 0\
**Last updated:** [December 20, 2022, 9:47am UTC](https://discourse.vtk.org/t/gitlab-code-review-process-and-documentation-updated/10271 "2022-12-20T09:47:30Z")

</div>

The review process documentation has been updated to be coherent with what the robot expect. https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/dev/git/develop.md#leading-line The main take away is. +1 m…

---

## [About inlined multiblock and partitioned dataset XML data format](https://discourse.vtk.org/t/about-inlined-multiblock-and-partitioned-dataset-xml-data-format/10507)

<div class="topic-metadata">

**Author:** [@mwestphal](https://discourse.vtk.org/u/mwestphal)\
**Replies:** 10\
**Last updated:** [February 7, 2023, 9:19am UTC](https://discourse.vtk.org/t/about-inlined-multiblock-and-partitioned-dataset-xml-data-format/10507 "2023-02-07T09:19:28Z")

</div>

Currently, .vtm (multiblock), .vtpd (partitioned dataset) and .vtpc (partitioned dataset collection) only support file pointers. eg: \<?xml version="1.0"?\> \<VTKFile type="vtkPartitionedDataSet" version="1.0" byte\_order=…

---

## [Unexpected dark area in ShadowsLightsDemo (?)](https://discourse.vtk.org/t/unexpected-dark-area-in-shadowslightsdemo/10515)

<div class="topic-metadata">

**Author:** [@estan](https://discourse.vtk.org/u/estan)\
**Replies:** 3\
**Last updated:** [February 7, 2023, 7:57am UTC](https://discourse.vtk.org/t/unexpected-dark-area-in-shadowslightsdemo/10515 "2023-02-07T07:57:58Z")

</div>

EDIT: Moved topic to the Development category since it’s about one of the official examples. Hope this is OK. Let me know if I should move it back to Support. Hi folks, Probably I’m just missing something, but I tried …

---

## [How to contribute examples to the wiki?](https://discourse.vtk.org/t/how-to-contribute-examples-to-the-wiki/10622)

<div class="topic-metadata">

**Author:** [@rexthor](https://discourse.vtk.org/u/rexthor)\
**Replies:** 2\
**Last updated:** [February 6, 2023, 2:05pm UTC](https://discourse.vtk.org/t/how-to-contribute-examples-to-the-wiki/10622 "2023-02-06T14:05:09Z")

</div>

I guess this sort of is and isn’t a developer question, but, how can I contribute examples to the Python wiki? Also, it looks as if there are Python examples for a number of these already (in the tests) but they aren’t …

---

## [Seeking Feedback and Ideas for Future Improvements on VTK and Jupyter Integration through WebRTC/MJPEG Streaming](https://discourse.vtk.org/t/seeking-feedback-and-ideas-for-future-improvements-on-vtk-and-jupyter-integration-through-webrtc-mjpeg-streaming/10615)

<div class="topic-metadata">

**Author:** [@devmessias](https://discourse.vtk.org/u/devmessias)\
**Replies:** 2\
**Last updated:** [February 6, 2023, 11:03am UTC](https://discourse.vtk.org/t/seeking-feedback-and-ideas-for-future-improvements-on-vtk-and-jupyter-integration-through-webrtc-mjpeg-streaming/10615 "2023-02-06T11:03:28Z")

</div>

Hello, in the 2021 Google Summer of Code, I worked on developing a fast WebRTC-based streaming system for VTK/FURY that enables you to both interact with and expose visualizations in Jupyter, or even expose them over the…

---

## [Why does the derived class condition meet or return a null pointer？？](https://discourse.vtk.org/t/why-does-the-derived-class-condition-meet-or-return-a-null-pointer/10495)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 2\
**Last updated:** [February 6, 2023, 8:16am UTC](https://discourse.vtk.org/t/why-does-the-derived-class-condition-meet-or-return-a-null-pointer/10495 "2023-02-06T08:16:53Z")

</div>

auto maptocolor=vtkImageMapToWindowLevelColors::SafeDownCast(temp); the temp

---

## [Combined raster/vector plots using Tikz for scientific publications](https://discourse.vtk.org/t/combined-raster-vector-plots-using-tikz-for-scientific-publications/10607)

<div class="topic-metadata">

**Author:** [@fraseyboo](https://discourse.vtk.org/u/fraseyboo)\
**Replies:** 0\
**Last updated:** [February 3, 2023, 11:31am UTC](https://discourse.vtk.org/t/combined-raster-vector-plots-using-tikz-for-scientific-publications/10607 "2023-02-03T11:31:22Z")

</div>

VTK is primarily a rasterization-focused visualiser but I’ve been making some progress on an exporter for making scientific figures that can be used in publications. Typically scientific journals expect vector graphics (…

---

## [vtkCubeAxesActor SetBold bu](https://discourse.vtk.org/t/vtkcubeaxesactor-setbold-bu/10601)

<div class="topic-metadata">

**Author:** [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)\
**Replies:** 0\
**Last updated:** [February 2, 2023, 8:28pm UTC](https://discourse.vtk.org/t/vtkcubeaxesactor-setbold-bu/10601 "2023-02-02T20:28:46Z")

</div>

Working with the online example: https://kitware.github.io/vtk-examples/site/Cxx/Utilities/DetermineActorType/ When I use the following, I don’t see that the font is drawn bold. cubeAxesActor-\>GetLabelTextProperty(0)-\>…

---

## [How to convert polyData to imageData](https://discourse.vtk.org/t/how-to-convert-polydata-to-imagedata/10575)

<div class="topic-metadata">

**Author:** [@jongzzi\_GanJang](https://discourse.vtk.org/u/jongzzi_GanJang)\
**Replies:** 1\
**Last updated:** [February 1, 2023, 3:58pm UTC](https://discourse.vtk.org/t/how-to-convert-polydata-to-imagedata/10575 "2023-02-01T15:58:51Z")

</div>

Thank you for watching this post. The above example is a stencil image of origin, spacing, dimensions, and contour data drawn from reference. Even if you put in any content data, there is a hole in the top. I don’t…

---

## [vtkPolyDataReader2](https://discourse.vtk.org/t/vtkpolydatareader2/10563)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 2\
**Last updated:** [January 31, 2023, 6:59pm UTC](https://discourse.vtk.org/t/vtkpolydatareader2/10563 "2023-01-31T18:59:57Z")

</div>

I am making a PolyDataFileSeriesReader similar to what is found in ParaView for ImageData, but supporting streaming (to save memory) in the situation where all files are processed as a whole. Further, it supports tempora…

---

## [Is anything blocking the removal of Python2 support from VTK?](https://discourse.vtk.org/t/is-anything-blocking-the-removal-of-python2-support-from-vtk/10468)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 7\
**Last updated:** [January 31, 2023, 3:00pm UTC](https://discourse.vtk.org/t/is-anything-blocking-the-removal-of-python2-support-from-vtk/10468 "2023-01-31T15:00:47Z")

</div>

Is anyone aware of blockers to removing Python2 support from VTK? It has been deprecated since 9.1.0, untested for…a long time, and has been EOL itself for 3 years now. Things removing Python2 support gets us: around …

---

## [Build failure due to VTK\_EXTRA\_COMPILER\_WARNINGS=ON](https://discourse.vtk.org/t/build-failure-due-to-vtk-extra-compiler-warnings-on/10533)

<div class="topic-metadata">

**Author:** [@waebbl](https://discourse.vtk.org/u/waebbl)\
**Replies:** 9\
**Last updated:** [January 28, 2023, 8:12am UTC](https://discourse.vtk.org/t/build-failure-due-to-vtk-extra-compiler-warnings-on/10533 "2023-01-28T08:12:22Z")

</div>

Hello, I received a bug report\[1\] where a debug build failed in vtkioss/Ioss\_Compare.C. On Gentoo Linux we still use CMAKE\_BUILD\_TYPE=RelWithDebInfo for debug builds and let the user choose most of the parameters needed…

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

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