# Development

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

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

**Page:** 52

---

## [Multivolume : Shading is not working](https://discourse.vtk.org/t/multivolume-shading-is-not-working/771)

<div class="topic-metadata">

**Author:** [@CNA](https://discourse.vtk.org/u/CNA)\
**Replies:** 6\
**Last updated:** [April 26, 2019, 6:38pm UTC](https://discourse.vtk.org/t/multivolume-shading-is-not-working/771 "2019-04-26T18:38:50Z")

</div>

Hi everyone, I am trying to use a vtkMultivolume with a vtkGPUVolumeRayCastMapper in 8.2 in c++ and I found something weird. When there is only on port used in the mapper and also one port used in the vtkMultivolume I …

---

## [Module vtkRenderingNone not built even with VTK\_RENDERING\_BACKEND=None](https://discourse.vtk.org/t/module-vtkrenderingnone-not-built-even-with-vtk-rendering-backend-none/585)

<div class="topic-metadata">

**Author:** [@romangrothausmann](https://discourse.vtk.org/u/romangrothausmann)\
**Replies:** 12\
**Last updated:** [April 25, 2019, 5:42pm UTC](https://discourse.vtk.org/t/module-vtkrenderingnone-not-built-even-with-vtk-rendering-backend-none/585 "2019-04-25T17:42:19Z")

</div>

Hi. When trying to compile a minimal VTK to use with ITKVtkGlue=ON (https://github.com/romangrothausmann/ITK-VTK\_CLIs/blob/0add37a5d4a91eb7bbafdf0b66096f83a755958f/Dockerfile#L50), ITK cmake stops with: Requested modul…

---

## [Proposal: Should we replace vtkStdString with std::string](https://discourse.vtk.org/t/proposal-should-we-replace-vtkstdstring-with-std-string/796)

<div class="topic-metadata">

**Author:** [@Haocheng\_Liu](https://discourse.vtk.org/u/Haocheng_Liu)\
**Replies:** 13\
**Last updated:** [April 25, 2019, 2:53am UTC](https://discourse.vtk.org/t/proposal-should-we-replace-vtkstdstring-with-std-string/796 "2019-04-25T02:53:09Z")

</div>

vtkStdString is introduced because in pre C++11 world, the symbol names are too long given by the standard STL string. Since now C++11 has improved a lot on std::string, this class has finished its mission. Should we rep…

---

## [Is zfp used in VTK?](https://discourse.vtk.org/t/is-zfp-used-in-vtk/786)

<div class="topic-metadata">

**Author:** [@opoplawski](https://discourse.vtk.org/u/opoplawski)\
**Replies:** 2\
**Last updated:** [April 22, 2019, 9:23pm UTC](https://discourse.vtk.org/t/is-zfp-used-in-vtk/786 "2019-04-22T21:23:21Z")

</div>

There is ThirdParty/zfp in the VTK source - but I can’t find any evidence that it is in use. Is there some planned future use or should it be removed? https://gitlab.kitware.com/vtk/vtk/issues/17540

---

## [VTK install directory control reduced in new build system](https://discourse.vtk.org/t/vtk-install-directory-control-reduced-in-new-build-system/811)

<div class="topic-metadata">

**Author:** [@cryos](https://discourse.vtk.org/u/cryos)\
**Replies:** 3\
**Last updated:** [April 22, 2019, 4:23pm UTC](https://discourse.vtk.org/t/vtk-install-directory-control-reduced-in-new-build-system/811 "2019-04-22T16:23:52Z")

</div>

We have been using VTK\_INSTALL\_LIBRARY\_DIR, VTK\_INSTALL\_ARCHIVE\_DIR etc to control where VTK (and ParaView) install their files. We did this to simplify packaging by removing version information from install directories,…

---

## [vtkloguru link errors building Mac app that doesn't use CMake](https://discourse.vtk.org/t/vtkloguru-link-errors-building-mac-app-that-doesnt-use-cmake/795)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.vtk.org/u/seanm)\
**Replies:** 2\
**Last updated:** [April 19, 2019, 8:13pm UTC](https://discourse.vtk.org/t/vtkloguru-link-errors-building-mac-app-that-doesnt-use-cmake/795 "2019-04-19T20:13:05Z")

</div>

Hi all, For the first time in a few months, I’m trying to build my Mac app against vtk master. I’m getting link errors like: “vtkloguru::vstrprintf(char const\*, \_\_va\_list\_tag\*)”, referenced from: vtkLogger::LogScopeR…

---

## [Should we replace SafeDownCast with dynamic\_cast](https://discourse.vtk.org/t/should-we-replace-safedowncast-with-dynamic-cast/669)

<div class="topic-metadata">

**Author:** [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Replies:** 9\
**Last updated:** [April 19, 2019, 1:44am UTC](https://discourse.vtk.org/t/should-we-replace-safedowncast-with-dynamic-cast/669 "2019-04-19T01:44:59Z")

</div>

Folks, SafeDownCast was added to vtk way back when dynamic\_cast was not available everywhere. Should we replace SafeDownCast in vtk with dynamic\_cast? It is more natural for modern C++ and is well-documented. It may …

---

## [for(vtkDataObject \*ds : vtk::Range(multiblock\_ds)) { .. }](https://discourse.vtk.org/t/for-vtkdataobject-ds-vtk-range-multiblock-ds/262)

<div class="topic-metadata">

**Author:** [@allison.vacanti](https://discourse.vtk.org/u/allison.vacanti)\
**Replies:** 7\
**Last updated:** [April 18, 2019, 3:51pm UTC](https://discourse.vtk.org/t/for-vtkdataobject-ds-vtk-range-multiblock-ds/262 "2019-04-18T15:51:18Z")

</div>

Similar to the vtk::DataArrayTupleRange, vtk::DataArrayValueRange, and vtk::Range(vtkCollection\*) helpers added recently, it’s the vtkCompositeDataSet hierarchy’s turn to get C++11 for-range support: https://gitlab.kitw…

---

## [How to evaluate if I'd benefit from using Intel TBB with VTK?](https://discourse.vtk.org/t/how-to-evaluate-if-id-benefit-from-using-intel-tbb-with-vtk/736)

<div class="topic-metadata">

**Author:** [@seanm](https://discourse.vtk.org/u/seanm)\
**Replies:** 7\
**Last updated:** [April 11, 2019, 2:55pm UTC](https://discourse.vtk.org/t/how-to-evaluate-if-id-benefit-from-using-intel-tbb-with-vtk/736 "2019-04-11T14:55:46Z")

</div>

Hi all, How can I evaluate if I’d benefit from using Intel TBB with VTK? That is, is there a list of VTK classes that use it? Or is there some TBB bottleneck function that I could put a breakpoint on to see if my app’…

---

## [Volume rendering with shading on : light orientation issue when user matrix has been modified](https://discourse.vtk.org/t/volume-rendering-with-shading-on-light-orientation-issue-when-user-matrix-has-been-modified/715)

<div class="topic-metadata">

**Author:** [@renaud-lebrun](https://discourse.vtk.org/u/renaud-lebrun)\
**Replies:** 13\
**Last updated:** [April 11, 2019, 9:38am UTC](https://discourse.vtk.org/t/volume-rendering-with-shading-on-light-orientation-issue-when-user-matrix-has-been-modified/715 "2019-04-11T09:38:17Z")

</div>

Dear All, I have a question regarding volume mapper shading related with light orientation. I develop a VTK based application ( https://github.com/morphomuseum/MorphoDig ), in which I use 3D rendering of a 3D volume w…

---

## [How to write STL from x y z co-ordinates ?](https://discourse.vtk.org/t/how-to-write-stl-from-x-y-z-co-ordinates/711)

<div class="topic-metadata">

**Author:** [@selvakarna](https://discourse.vtk.org/u/selvakarna)\
**Replies:** 3\
**Last updated:** [April 9, 2019, 2:27pm UTC](https://discourse.vtk.org/t/how-to-write-stl-from-x-y-z-co-ordinates/711 "2019-04-09T14:27:15Z")

</div>

How to write STL from x y z co-ordinates? x y z are extracted from 3D volume images, so my goal is x y z convert to STL?

---

## [vtkpython 3.7 error with windows debug build](https://discourse.vtk.org/t/vtkpython-3-7-error-with-windows-debug-build/692)

<div class="topic-metadata">

**Author:** [@Aron\_Helser](https://discourse.vtk.org/u/Aron_Helser)\
**Replies:** 8\
**Last updated:** [April 8, 2019, 3:11pm UTC](https://discourse.vtk.org/t/vtkpython-3-7-error-with-windows-debug-build/692 "2019-04-08T15:11:27Z")

</div>

I’m seeing an error when trying to use vtkpython with python 3.7 and a debug build: Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) \[MSC v.1916 64 bit (AMD64)\] on win32 Type “help”, “copyright”, “credits” or “l…

---

## [vtkAbstractPicker::SetPropCollection](https://discourse.vtk.org/t/vtkabstractpicker-setpropcollection/683)

<div class="topic-metadata">

**Author:** [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)\
**Replies:** 0\
**Last updated:** [April 4, 2019, 8:00am UTC](https://discourse.vtk.org/t/vtkabstractpicker-setpropcollection/683 "2019-04-04T08:00:06Z")

</div>

There is no method to assign a new prop collection to a picker, but all methods are in place to modify the prop collection, and the prop collection itself is accessible for modification. This however requires iterating o…

---

## [Merge topic 'revert-shader-properties'](https://discourse.vtk.org/t/merge-topic-revert-shader-properties/659)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 3\
**Last updated:** [April 3, 2019, 1:25pm UTC](https://discourse.vtk.org/t/merge-topic-revert-shader-properties/659 "2019-04-03T13:25:45Z")

</div>

Please consider using deprecation in future. I just had to revert a whole lot of changes to the VTKExamples. Thanks Andrew

---

## [Applying clustering algorithms to a volume surface](https://discourse.vtk.org/t/applying-clustering-algorithms-to-a-volume-surface/672)

<div class="topic-metadata">

**Author:** [@LVittorelli](https://discourse.vtk.org/u/LVittorelli)\
**Replies:** 0\
**Last updated:** [April 3, 2019, 9:34am UTC](https://discourse.vtk.org/t/applying-clustering-algorithms-to-a-volume-surface/672 "2019-04-03T09:34:01Z")

</div>

Hello, I’m trying to compare some OpenFOAM CFD simulations that reproduce the flow through an almost spherical object(the object is a reconstruction, with an irregular shape), searching for the one with the smallest clu…

---

## [draw lines on DICOM image with vtkImageViewer2](https://discourse.vtk.org/t/draw-lines-on-dicom-image-with-vtkimageviewer2/652)

<div class="topic-metadata">

**Author:** [@719mikelee5](https://discourse.vtk.org/u/719mikelee5)\
**Replies:** 0\
**Last updated:** [April 1, 2019, 3:53am UTC](https://discourse.vtk.org/t/draw-lines-on-dicom-image-with-vtkimageviewer2/652 "2019-04-01T03:53:35Z")

</div>

Hello, friends I’m trying to draw lines on DICOM CT image. vtkImageViewer2 is my prefer to display the DICOM image. And I need to draw lines on the displayed image too, but it seems could not work. I found that vtkIma…

---

## [Struggling with geographic coordinates](https://discourse.vtk.org/t/struggling-with-geographic-coordinates/596)

<div class="topic-metadata">

**Author:** [@cobo](https://discourse.vtk.org/u/cobo)\
**Replies:** 17\
**Last updated:** [March 31, 2019, 1:09pm UTC](https://discourse.vtk.org/t/struggling-with-geographic-coordinates/596 "2019-03-31T13:09:59Z")

</div>

In my models I am working with geographic coordinates, which are meters in a range between -10’000 and +10’000, and some applications require a precision down to cm or mm - which is not covered any more with “float” data…

---

## [vtkJavaMemoryManager issue](https://discourse.vtk.org/t/vtkjavamemorymanager-issue/628)

<div class="topic-metadata">

**Author:** [@mat127](https://discourse.vtk.org/u/mat127)\
**Replies:** 7\
**Last updated:** [March 30, 2019, 12:30am UTC](https://discourse.vtk.org/t/vtkjavamemorymanager-issue/628 "2019-03-30T00:30:32Z")

</div>

Hello, maybe I am missing something but it seems to me that there is an issue in the vtkJavaMemoryManagerImpl class. Let me describe the scenario: I am overriding in my Java code the vtkPolygonalHandleRepresentation3D …

---

## [vtkSmartPointer and vtkNew in VTK's API. Best practices?](https://discourse.vtk.org/t/vtksmartpointer-and-vtknew-in-vtks-api-best-practices/518)

<div class="topic-metadata">

**Author:** [@allison.vacanti](https://discourse.vtk.org/u/allison.vacanti)\
**Replies:** 19\
**Last updated:** [March 27, 2019, 2:11pm UTC](https://discourse.vtk.org/t/vtksmartpointer-and-vtknew-in-vtks-api-best-practices/518 "2019-03-27T14:11:26Z")

</div>

As best practices emerge in a post-C++11 world, one of the newer guidelines becoming commonplace is “don’t use raw pointers.” Preferring smart pointers prevents a host of mistakes and provides an additional level of safe…

---

## [vtkScalarBarActor New macro problem](https://discourse.vtk.org/t/vtkscalarbaractor-new-macro-problem/610)

<div class="topic-metadata">

**Author:** [@ramon.j.moral](https://discourse.vtk.org/u/ramon.j.moral)\
**Replies:** 2\
**Last updated:** [March 26, 2019, 10:07pm UTC](https://discourse.vtk.org/t/vtkscalarbaractor-new-macro-problem/610 "2019-03-26T22:07:02Z")

</div>

Hello, I am using QtCreator to make a vtk App. I wanted to make a section of the app that shows the vtkScalarBarActor so the USER can get a feeling for the colors their going to use for their state plot. I have two li…

---

## [vtkResliceImageViewer only shows one slice from a vtkImageData obtained from reslice filter](https://discourse.vtk.org/t/vtkresliceimageviewer-only-shows-one-slice-from-a-vtkimagedata-obtained-from-reslice-filter/607)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.vtk.org/u/zandarina)\
**Replies:** 0\
**Last updated:** [March 26, 2019, 3:57pm UTC](https://discourse.vtk.org/t/vtkresliceimageviewer-only-shows-one-slice-from-a-vtkimagedata-obtained-from-reslice-filter/607 "2019-03-26T15:57:38Z")

</div>

Dear all, I have a question. I want to show using vtkResliceImageViewer the slices i have got from the reslicer filter. So i append in z the output and i call a fuction to show me the vtkImageData witth all the…

---

## [Error handling](https://discourse.vtk.org/t/error-handling/603)

<div class="topic-metadata">

**Author:** [@michal.wozniak](https://discourse.vtk.org/u/michal.wozniak)\
**Replies:** 0\
**Last updated:** [March 25, 2019, 4:36pm UTC](https://discourse.vtk.org/t/error-handling/603 "2019-03-25T16:36:11Z")

</div>

Hi, What is the best way to handle VTK errors while chaining multiple VTK filters? Use vtkErrorCode to add specific error code and then do const bool result = filter-\>GetErrorCode() == vtkErrorCode ::NoError; //co…

---

## [Query to import nifty image in lut color](https://discourse.vtk.org/t/query-to-import-nifty-image-in-lut-color/588)

<div class="topic-metadata">

**Author:** [@svabhishek29](https://discourse.vtk.org/u/svabhishek29)\
**Replies:** 0\
**Last updated:** [March 21, 2019, 5:08pm UTC](https://discourse.vtk.org/t/query-to-import-nifty-image-in-lut-color/588 "2019-03-21T17:08:01Z")

</div>

Hi, I am working on doing segmentation on medical images using neural networks and was trying to see if setting windowing to right levels helps in training the net to get better results. I was able to implement the look…

---

## [vtkMultiThreshold strange API](https://discourse.vtk.org/t/vtkmultithreshold-strange-api/510)

<div class="topic-metadata">

**Author:** [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Replies:** 4\
**Last updated:** [March 21, 2019, 1:55pm UTC](https://discourse.vtk.org/t/vtkmultithreshold-strange-api/510 "2019-03-21T13:55:01Z")

</div>

Folks and @dcthomp First, vtkMultiThreshold is a very interesting and useful class. I notice the only place it is used in vtk is in its unit test I decided to write an example: CellsInsideObject The filter documentati…

---

## [How to create a vtkUnstructuredGrid in parallel](https://discourse.vtk.org/t/how-to-create-a-vtkunstructuredgrid-in-parallel/532)

<div class="topic-metadata">

**Author:** [@SergeLalonde](https://discourse.vtk.org/u/SergeLalonde)\
**Replies:** 0\
**Last updated:** [March 19, 2019, 2:31pm UTC](https://discourse.vtk.org/t/how-to-create-a-vtkunstructuredgrid-in-parallel/532 "2019-03-19T14:31:08Z")

</div>

Is it possible to initialize a vtkUnstructured grid in parallel? Ex: using OpenMP. The InsertNextCell() method is definitely not thread safe, even if Allocate() is called beforehand. If there was a SetCell(vtkIdType id…

---

## [Building vtkDICOM as a Remote VTK Module with Java Wrapping fails](https://discourse.vtk.org/t/building-vtkdicom-as-a-remote-vtk-module-with-java-wrapping-fails/491)

<div class="topic-metadata">

**Author:** [@lars\_matthaeus](https://discourse.vtk.org/u/lars_matthaeus)\
**Replies:** 3\
**Last updated:** [March 15, 2019, 3:51pm UTC](https://discourse.vtk.org/t/building-vtkdicom-as-a-remote-vtk-module-with-java-wrapping-fails/491 "2019-03-15T15:51:25Z")

</div>

I’m trying to build VTK on Windows with VS 2017 (x64, Release). I have enabled the vtkDicom module in CMAKE as well as the VTK\_WRAP\_JAVA option (Java 1.8). When building the solution in VS, I get a linker error for the v…

---

## [Improve const correctness of vtkAbstractDataArray, vtkPoints and derived classes](https://discourse.vtk.org/t/improve-const-correctness-of-vtkabstractdataarray-vtkpoints-and-derived-classes/404)

<div class="topic-metadata">

**Author:** [@phcerdan](https://discourse.vtk.org/u/phcerdan)\
**Replies:** 9\
**Last updated:** [March 13, 2019, 3:45pm UTC](https://discourse.vtk.org/t/improve-const-correctness-of-vtkabstractdataarray-vtkpoints-and-derived-classes/404 "2019-03-13T15:45:49Z")

</div>

vtkPoints::GetNumberOfPoints(), vtkAbstractDataArray::GetNumberOfTuples are not constant. This impedes to be const correct, void ReadPoints(const vtkPoints \*read\_only\_points) { auto npoints = read\_only\_points-\>…

---

## [Point data from \`vtkProbeFilter\` lost after \`vtkSelectEnclosedPoints\`](https://discourse.vtk.org/t/point-data-from-vtkprobefilter-lost-after-vtkselectenclosedpoints/130)

<div class="topic-metadata">

**Author:** [@romangrothausmann](https://discourse.vtk.org/u/romangrothausmann)\
**Replies:** 1\
**Last updated:** [March 15, 2019, 9:20am UTC](https://discourse.vtk.org/t/point-data-from-vtkprobefilter-lost-after-vtkselectenclosedpoints/130 "2019-03-15T09:20:38Z")

</div>

Hi. It seems that point data from vtkProbeFilter (e.g. MetaImage from probing an MHA with a VTP) is lost when processed afterwards with vtkSelectEnclosedPoints (only contains SelectedPoints and vktValidPointMask). Since…

---

## [MultiBlockDataSet field data inaccessible from outer layer](https://discourse.vtk.org/t/multiblockdataset-field-data-inaccessible-from-outer-layer/482)

<div class="topic-metadata">

**Author:** [@phil\_ossk](https://discourse.vtk.org/u/phil_ossk)\
**Replies:** 2\
**Last updated:** [March 14, 2019, 1:51pm UTC](https://discourse.vtk.org/t/multiblockdataset-field-data-inaccessible-from-outer-layer/482 "2019-03-14T13:51:44Z")

</div>

Hello there, Before submitting a bug report, I am looking for your input on an issue I am facing. I have a MultiBlockDataSet (let’s call it mbds0) with several blocks . Some field data (testArray0 and testArray1) has b…

---

## [Changing stereo-related flags](https://discourse.vtk.org/t/changing-stereo-related-flags/477)

<div class="topic-metadata">

**Author:** [@utkarshayachit](https://discourse.vtk.org/u/utkarshayachit)\
**Replies:** 3\
**Last updated:** [March 14, 2019, 10:59am UTC](https://discourse.vtk.org/t/changing-stereo-related-flags/477 "2019-03-14T10:59:15Z")

</div>

Currently there are 3 user-settable flags that affect whether and how vtkRenderWindow does stereo rendering: StereoCapableWindow, StereoRender and StereoType. All are user settable and the biggest annoyance is that there…

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

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