# Support

**URL:** https://discourse.vtk.org/c/support/6.md?page=83

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

**Page:** 84

---

## [VTK Error : "Vector subscript out of range" while setting Input connection in (happen only in debug)](https://discourse.vtk.org/t/vtk-error-vector-subscript-out-of-range-while-setting-input-connection-in-happen-only-in-debug/7552)

<div class="topic-metadata">

**Author:** [@osezer](https://discourse.vtk.org/u/osezer)\
**Replies:** 3\
**Last updated:** [February 4, 2022, 8:58am UTC](https://discourse.vtk.org/t/vtk-error-vector-subscript-out-of-range-while-setting-input-connection-in-happen-only-in-debug/7552 "2022-02-04T08:58:24Z")

</div>

Hello, I compiled VTK 9 and OCCT 7.6.0 with VTK 9.1.0 but I’m getting this error only in debug mode in release mode it is fine. Exact line : //Mapper-\>SetInputConnection(OCCSource-\>GetOutputPort()); Exact same issue …

---

## [How to get sorted actor in vtkCellPicker?](https://discourse.vtk.org/t/how-to-get-sorted-actor-in-vtkcellpicker/7758)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [February 3, 2022, 2:45am UTC](https://discourse.vtk.org/t/how-to-get-sorted-actor-in-vtkcellpicker/7758 "2022-02-03T02:45:20Z")

</div>

In vtkCellPicker: /\*\* \* Return a collection of all the prop 3D's that were intersected \* by the pick ray. This collection is not sorted. \*/ vtkProp3DCollection\* GetProp3Ds() { return this-\>Prop3Ds; } Is i…

---

## [Dataset with large-value coordinates renders black in VTK9.1, normal in VTK8.1](https://discourse.vtk.org/t/dataset-with-large-value-coordinates-renders-black-in-vtk9-1-normal-in-vtk8-1/7757)

<div class="topic-metadata">

**Author:** [@biagas](https://discourse.vtk.org/u/biagas)\
**Replies:** 0\
**Last updated:** [February 2, 2022, 6:14pm UTC](https://discourse.vtk.org/t/dataset-with-large-value-coordinates-renders-black-in-vtk9-1-normal-in-vtk8-1/7757 "2022-02-02T18:14:56Z")

</div>

I encountered this with a more complex dataset, but have created a simple example that demonstrates the issue. It creates a 2x2x2 rectilinear grid with coordinate values of -5.5e+20 and 2.5e+20 for each dimension, then …

---

## [RayCasting 3D Image with "bit objects"](https://discourse.vtk.org/t/raycasting-3d-image-with-bit-objects/7731)

<div class="topic-metadata">

**Author:** [@osemmler](https://discourse.vtk.org/u/osemmler)\
**Replies:** 4\
**Last updated:** [February 2, 2022, 2:00pm UTC](https://discourse.vtk.org/t/raycasting-3d-image-with-bit-objects/7731 "2022-02-02T14:00:58Z")

</div>

Hello, I’d like to ask your advice. INPUT 3D image Individual bits in a pixel represent individual objects: 0 \[b0000\] - no object 1 \[b0001\] - object A 2 \[b0010\] - object B 4 \[b0100\] - object C 8 \[b1000\] - object D ……

---

## [Slicing vtkPolyData read from STL file](https://discourse.vtk.org/t/slicing-vtkpolydata-read-from-stl-file/7746)

<div class="topic-metadata">

**Author:** [@LuisFco](https://discourse.vtk.org/u/LuisFco)\
**Replies:** 2\
**Last updated:** [January 31, 2022, 8:00pm UTC](https://discourse.vtk.org/t/slicing-vtkpolydata-read-from-stl-file/7746 "2022-01-31T20:00:16Z")

</div>

Hi! I’m trying to create slices of an STL bone model and obtaining binary masks of each slice to be exported into numpy for further processing. I’m quite new in VTK and I’m a bit lost. My STL model to be sliced looks li…

---

## [The meaning of size variable in ComputeOBB of OBBTree](https://discourse.vtk.org/t/the-meaning-of-size-variable-in-computeobb-of-obbtree/1313)

<div class="topic-metadata">

**Author:** [@Robert\_Sawko](https://discourse.vtk.org/u/Robert_Sawko)\
**Replies:** 5\
**Last updated:** [January 29, 2022, 12:27pm UTC](https://discourse.vtk.org/t/the-meaning-of-size-variable-in-computeobb-of-obbtree/1313 "2022-01-29T12:27:59Z")

</div>

Hi, Just a quick question regarding oriented bounding boxes. I am struggling to interpret the meaning of size variable in ComputeOBB function. Below I am attaching a minimal example which creates a sphere, an ellipsoid …

---

## [Mesa CPU rendering question](https://discourse.vtk.org/t/mesa-cpu-rendering-question/7695)

<div class="topic-metadata">

**Author:** [@EMalikova](https://discourse.vtk.org/u/EMalikova)\
**Replies:** 6\
**Last updated:** [January 29, 2022, 12:23am UTC](https://discourse.vtk.org/t/mesa-cpu-rendering-question/7695 "2022-01-29T00:23:26Z")

</div>

Dear All, recently I have been running some experiments with CPU rendering of polygonal objects in cloud environment and have received quite a low performance, although CPUs are quite an old ones. On VM with 12 cores th…

---

## [Overlay colors for cut planes](https://discourse.vtk.org/t/overlay-colors-for-cut-planes/7732)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 0\
**Last updated:** [January 28, 2022, 9:38am UTC](https://discourse.vtk.org/t/overlay-colors-for-cut-planes/7732 "2022-01-28T09:38:33Z")

</div>

Here is the code： onDisplayColorMprPixel(vtkImageViewer2\* imageViewer, vtkImagePlaneWidget\* imagePlane,int slicerIndex) { vtkSmartPointer\<vtkImageViewer2\> viewerLayer = vtkSmartPointer\<vtkImageViewer2\>::New(); //v…

---

## [Non-zero 3D image surface](https://discourse.vtk.org/t/non-zero-3d-image-surface/7715)

<div class="topic-metadata">

**Author:** [@osemmler](https://discourse.vtk.org/u/osemmler)\
**Replies:** 3\
**Last updated:** [January 27, 2022, 7:25pm UTC](https://discourse.vtk.org/t/non-zero-3d-image-surface/7715 "2022-01-27T19:25:06Z")

</div>

Hello, I’d like to ask your advice. INPUT 3D image. -1 = background 0…X = object OUTPUT triangular surface containing values equal to the value of the edge voxels of the object Can you please advise me what…

---

## [Constructing iso-contours in parallel](https://discourse.vtk.org/t/constructing-iso-contours-in-parallel/7730)

<div class="topic-metadata">

**Author:** [@Robert\_Sawko](https://discourse.vtk.org/u/Robert_Sawko)\
**Replies:** 0\
**Last updated:** [January 27, 2022, 5:04pm UTC](https://discourse.vtk.org/t/constructing-iso-contours-in-parallel/7730 "2022-01-27T17:04:42Z")

</div>

Hello, I’ve got a fairly simple pipeline that I intend to use in parallel in-situ runs: MergeBlocks GhostCellsGenerator CellDatatoPointData Contour I have described the reason for doing it here. This seems to be work…

---

## [Creating .vtk from .bin file](https://discourse.vtk.org/t/creating-vtk-from-bin-file/7724)

<div class="topic-metadata">

**Author:** [@daria](https://discourse.vtk.org/u/daria)\
**Replies:** 2\
**Last updated:** [January 27, 2022, 3:20pm UTC](https://discourse.vtk.org/t/creating-vtk-from-bin-file/7724 "2022-01-27T15:20:48Z")

</div>

Hi! I am new with .vtk and I am little bit meshed. I am using js, just need to convert my file to .vtk in order to add in my viewer based on THREE.js. So, my question: I have some binary file, which I can parse to Arr…

---

## [Export points data with normals and RGB](https://discourse.vtk.org/t/export-points-data-with-normals-and-rgb/7723)

<div class="topic-metadata">

**Author:** [@couzulli](https://discourse.vtk.org/u/couzulli)\
**Replies:** 0\
**Last updated:** [January 26, 2022, 8:34pm UTC](https://discourse.vtk.org/t/export-points-data-with-normals-and-rgb/7723 "2022-01-26T20:34:40Z")

</div>

I am trying to export point cloud from a Obj mesh with normals and color information. Just Points can be exported with vtkOBJReader as - reader = vtk.vtkOBJReader() reader.SetFileName(obj\_file) reader.Update() polyData…

---

## [Is there exists some filters just like vtkSelectedEnclosedPoints but executes base gpu?](https://discourse.vtk.org/t/is-there-exists-some-filters-just-like-vtkselectedenclosedpoints-but-executes-base-gpu/7716)

<div class="topic-metadata">

**Author:** [@xianger.qi](https://discourse.vtk.org/u/xianger.qi)\
**Replies:** 2\
**Last updated:** [January 26, 2022, 6:10pm UTC](https://discourse.vtk.org/t/is-there-exists-some-filters-just-like-vtkselectedenclosedpoints-but-executes-base-gpu/7716 "2022-01-26T18:10:47Z")

</div>

I want to evaluate appropriately 1500 points to determine whether they are in an enclosed surface, which has appropriately one million points. because i need to execute 1500 \* 200 times evaluating in one second, that ne…

---

## [Why is the reversed cell aways shown as black?](https://discourse.vtk.org/t/why-is-the-reversed-cell-aways-shown-as-black/7708)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 3\
**Last updated:** [January 26, 2022, 1:22pm UTC](https://discourse.vtk.org/t/why-is-the-reversed-cell-aways-shown-as-black/7708 "2022-01-26T13:22:16Z")

</div>

Hello,I used: cubeActor-\>GetMapper()-\>GetInput()-\>ReverseCell(cellId) to reverse a face of a cube,after reversing,face table of obj changed from f 1/1/1 2/2/2 3/3/3 4/4/4 f 5/5/5 6/6/6 7/7/7 8/8/8 f 9/9/9 10/10/10 11/…

---

## [Error building VTK with Qt support in (Ubuntu) Docker container](https://discourse.vtk.org/t/error-building-vtk-with-qt-support-in-ubuntu-docker-container/7671)

<div class="topic-metadata">

**Author:** [@gipert](https://discourse.vtk.org/u/gipert)\
**Replies:** 2\
**Last updated:** [January 25, 2022, 4:00pm UTC](https://discourse.vtk.org/t/error-building-vtk-with-qt-support-in-ubuntu-docker-container/7671 "2022-01-25T16:00:17Z")

</div>

I’m trying to build VTK in an ubuntu:focal-based Docker container with Qt support. Here’s a link to the Dockerfile. The build configuration runs smoothly but I get the following error at the very end of make: \[100%\] Lin…

---

## [Problems using the VTK camera function elevation](https://discourse.vtk.org/t/problems-using-the-vtk-camera-function-elevation/2215)

<div class="topic-metadata">

**Author:** [@Sathiya\_Moorthy](https://discourse.vtk.org/u/Sathiya_Moorthy)\
**Replies:** 8\
**Last updated:** [January 24, 2022, 4:48pm UTC](https://discourse.vtk.org/t/problems-using-the-vtk-camera-function-elevation/2215 "2022-01-24T16:48:58Z")

</div>

I have to implement some kind of flythrough via VTK (through a skull for example) and keyboard navigation. My idea is to manipulate my camera so that i can move arround the object. In VTK you can manipulate the camera w…

---

## [Hide portions of geometry using the vtkImageViewer2](https://discourse.vtk.org/t/hide-portions-of-geometry-using-the-vtkimageviewer2/7709)

<div class="topic-metadata">

**Author:** [@no2497](https://discourse.vtk.org/u/no2497)\
**Replies:** 0\
**Last updated:** [January 24, 2022, 3:20pm UTC](https://discourse.vtk.org/t/hide-portions-of-geometry-using-the-vtkimageviewer2/7709 "2022-01-24T15:20:40Z")

</div>

Hi, in the vtkImageViewer2 Class Reference (https://vtk.org/doc/nightly/html/classvtkImageViewer2.html#details) it is reported that “Any portions of your geometry that are in front of the displayed slice will be visible…

---

## [where is the ninja compile result located](https://discourse.vtk.org/t/where-is-the-ninja-compile-result-located/7699)

<div class="topic-metadata">

**Author:** [@longjiang321](https://discourse.vtk.org/u/longjiang321)\
**Replies:** 6\
**Last updated:** [January 24, 2022, 3:05pm UTC](https://discourse.vtk.org/t/where-is-the-ninja-compile-result-located/7699 "2022-01-24T15:05:57Z")

</div>

hi friends: Thank you in advance!! I am trying to compile VTK as below tool chain: Cmake3.21.1 + VS2022 + VTK 9.1 + ninja the detail command as below: But though I had set the install-prefix to specify the install…

---

## [VTK: how to use QT to realize volume rendering clipping?](https://discourse.vtk.org/t/vtk-how-to-use-qt-to-realize-volume-rendering-clipping/7527)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 5\
**Last updated:** [January 24, 2022, 6:09am UTC](https://discourse.vtk.org/t/vtk-how-to-use-qt-to-realize-volume-rendering-clipping/7527 "2022-01-24T06:09:57Z")

</div>

---

## [3D mode ROI (volume rendering)](https://discourse.vtk.org/t/3d-mode-roi-volume-rendering/7705)

<div class="topic-metadata">

**Author:** [@sun](https://discourse.vtk.org/u/sun)\
**Replies:** 0\
**Last updated:** [January 24, 2022, 2:53am UTC](https://discourse.vtk.org/t/3d-mode-roi-volume-rendering/7705 "2022-01-24T02:53:35Z")

</div>

In MPR, I implemented the ROI extraction function using the vtkContourWidget widget. But when I use vtkContourWidget in 3D mode (volume rendering), it doesn’t display well. I want to draw a closed circle on the screen …

---

## [Substraction between one volume respect other two volumes does not affect the intersected areas](https://discourse.vtk.org/t/substraction-between-one-volume-respect-other-two-volumes-does-not-affect-the-intersected-areas/2760)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.vtk.org/u/zandarina)\
**Replies:** 19\
**Last updated:** [January 24, 2022, 2:51am UTC](https://discourse.vtk.org/t/substraction-between-one-volume-respect-other-two-volumes-does-not-affect-the-intersected-areas/2760 "2022-01-24T02:51:41Z")

</div>

Hello, I have a doubt I hope someone can give me an idea. I want to substract one volume (obtained from a polydata with vtkPolyDataToImageStencil) from several cubes which are polydatas too. I append the cubes with vtkA…

---

## [Import and export OFF or STL files to do mesh Boolean operations(Union, Difference, Intersection)](https://discourse.vtk.org/t/import-and-export-off-or-stl-files-to-do-mesh-boolean-operations-union-difference-intersection/6918)

<div class="topic-metadata">

**Author:** [@Sumil\_Sood](https://discourse.vtk.org/u/Sumil_Sood)\
**Replies:** 4\
**Last updated:** [January 24, 2022, 2:12am UTC](https://discourse.vtk.org/t/import-and-export-off-or-stl-files-to-do-mesh-boolean-operations-union-difference-intersection/6918 "2022-01-24T02:12:59Z")

</div>

Hi, I compiled the example Implicit Boolean(https://kitware.github.io/vtkexamples/site/Cxx/Filtering/ImplicitBoolean/) and it works fine for mesh Boolean operations. However, it uses the it’s own sphere, I want to impor…

---

## [How to preserve the original cell color when using scalars to change the partial cell color?](https://discourse.vtk.org/t/how-to-preserve-the-original-cell-color-when-using-scalars-to-change-the-partial-cell-color/7685)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 2\
**Last updated:** [January 23, 2022, 4:12pm UTC](https://discourse.vtk.org/t/how-to-preserve-the-original-cell-color-when-using-scalars-to-change-the-partial-cell-color/7685 "2022-01-23T16:12:43Z")

</div>

Hello, these code was used to change partial cells’s color: void coloringSelectedCells() { vtkNew nc; auto orbg = property()-\>GetColor(); double originalColor\[4\] = { orbg\[0\] \* 255, orbg\[1\] \* 255, orbg\[2\] \* 255, 1 }; …

---

## [Why does the opacity get changed when using vtkLookupTable to set cell color?](https://discourse.vtk.org/t/why-does-the-opacity-get-changed-when-using-vtklookuptable-to-set-cell-color/7684)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 1\
**Last updated:** [January 23, 2022, 2:08pm UTC](https://discourse.vtk.org/t/why-does-the-opacity-get-changed-when-using-vtklookuptable-to-set-cell-color/7684 "2022-01-23T14:08:30Z")

</div>

Hello,blow code was used to set cell color: void SceneObject::coloringSelectedCells() { vtkNew nc; auto orbg = property()-\>GetColor(); double originalColor\[4\] = { orbg\[0\] \* 255, orbg\[1\] \* 255, orbg\[2\] \* 255, 1 }; a…

---

## [python vtk: how to import QVTKOpenGLNativeWidget](https://discourse.vtk.org/t/python-vtk-how-to-import-qvtkopenglnativewidget/7641)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 5\
**Last updated:** [January 23, 2022, 1:36pm UTC](https://discourse.vtk.org/t/python-vtk-how-to-import-qvtkopenglnativewidget/7641 "2022-01-23T13:36:47Z")

</div>

I am using python based vtk, and I want to import QVTKOpenGLNativeWidget, but an error is reported: AttributeError: module 'vtkmodules.all' has no attribute 'QVTKOpenGLNativeWidget' How can I import QVTKOpenGLNativeWi…

---

## [QT6.2 + VTK9.1 compile failed](https://discourse.vtk.org/t/qt6-2-vtk9-1-compile-failed/7666)

<div class="topic-metadata">

**Author:** [@longjiang321](https://discourse.vtk.org/u/longjiang321)\
**Replies:** 2\
**Last updated:** [January 23, 2022, 4:10am UTC](https://discourse.vtk.org/t/qt6-2-vtk9-1-compile-failed/7666 "2022-01-23T04:10:48Z")

</div>

hi friends: when I try to compile QT6.2 with VTK9.1 on windows 10, had encounter so much diffcult, event though I had enable VTK\_GROUP\_ENABLE\_QT and set the QT version as 6! thank you very much in advance for your resp…

---

## [REPRESENT A 3D MODEL OF A BONE WITH A COLORMAP BASED ON BONE THICKNESS](https://discourse.vtk.org/t/represent-a-3d-model-of-a-bone-with-a-colormap-based-on-bone-thickness/7704)

<div class="topic-metadata">

**Author:** [@Albsb](https://discourse.vtk.org/u/Albsb)\
**Replies:** 0\
**Last updated:** [January 22, 2022, 5:17pm UTC](https://discourse.vtk.org/t/represent-a-3d-model-of-a-bone-with-a-colormap-based-on-bone-thickness/7704 "2022-01-22T17:17:19Z")

</div>

Hello! We have an array of contours with information about the thickness of a bone tissue. In each one of the slices, all the values are zero except those that show the thickness. The following image is an example of on…

---

## [application based on vtk will crash when memory is insufficient](https://discourse.vtk.org/t/application-based-on-vtk-will-crash-when-memory-is-insufficient/7635)

<div class="topic-metadata">

**Author:** [@xianger.qi](https://discourse.vtk.org/u/xianger.qi)\
**Replies:** 1\
**Last updated:** [January 22, 2022, 4:12pm UTC](https://discourse.vtk.org/t/application-based-on-vtk-will-crash-when-memory-is-insufficient/7635 "2022-01-22T16:12:30Z")

</div>

when i allocate the space of memory which is more than the capacity of computer ram in vtk, and the application will crash with no exception thrown. just like the code below: how could i prevent the situation to happ…

---

## [Error happend while linking vtkProbeOpenGLVersion.cxx.o](https://discourse.vtk.org/t/error-happend-while-linking-vtkprobeopenglversion-cxx-o/7572)

<div class="topic-metadata">

**Author:** [@imgoofy](https://discourse.vtk.org/u/imgoofy)\
**Replies:** 6\
**Last updated:** [January 22, 2022, 4:10pm UTC](https://discourse.vtk.org/t/error-happend-while-linking-vtkprobeopenglversion-cxx-o/7572 "2022-01-22T16:10:24Z")

</div>

I’m trying to build VTK in my Linux machine, but I got below linking error. How could I fix it? ld: CMakeFiles/vtkProbeOpenGLVersion.dir/vtkProbeOpenGLVersion.cxx.o: undefined reference to symbo ‘\_ZStlsISt11char\_traints…

---

## [VTK on windows10](https://discourse.vtk.org/t/vtk-on-windows10/2131)

<div class="topic-metadata">

**Author:** [@banikr](https://discourse.vtk.org/u/banikr)\
**Replies:** 10\
**Last updated:** [January 22, 2022, 2:14pm UTC](https://discourse.vtk.org/t/vtk-on-windows10/2131 "2022-01-22T14:14:06Z")

</div>

Hello, I have used VTK in Linux. Now I need to use VTK in windows10. Is there a way I can use that like Ubuntu systems…like ccmake and make command lines and all for C++ codes? Thanks

[Previous page](https://discourse.vtk.org/c/support/6.md?page=82)

[Next page](https://discourse.vtk.org/c/support/6.md?page=84)
