# Latest

**URL:** https://discourse.vtk.org/latest.md?page=144

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

**Page:** 145

---

## [Sync react state with Vtk.js renderer / scene state](https://discourse.vtk.org/t/sync-react-state-with-vtk-js-renderer-scene-state/7751)

<div class="topic-metadata">

**Author:** [@Nicolas\_Schmidt](https://discourse.vtk.org/u/Nicolas_Schmidt)\
**Replies:** 3\
**Last updated:** [February 7, 2022, 3:24pm UTC](https://discourse.vtk.org/t/sync-react-state-with-vtk-js-renderer-scene-state/7751 "2022-02-07T15:24:43Z")

</div>

What’s the right way to derive the state from the vtk.js renderer (or other source) so that it can be properly reflected in the frontend using React? I’m using vtk.js in React, and have created an app with controls that…

---

## [Gauss points in cells](https://discourse.vtk.org/t/gauss-points-in-cells/6665)

<div class="topic-metadata">

**Author:** [@Sagues](https://discourse.vtk.org/u/Sagues)\
**Replies:** 3\
**Last updated:** [February 7, 2022, 3:22pm UTC](https://discourse.vtk.org/t/gauss-points-in-cells/6665 "2022-02-07T15:22:14Z")

</div>

How can I add gauss points in cells (triangles, quadrilaterals, lines) in unstructured grid? Adding interpolate points, for example?

---

## [vtkResliceCursorWidget does not move as quickly as the mouse](https://discourse.vtk.org/t/vtkreslicecursorwidget-does-not-move-as-quickly-as-the-mouse/7784)

<div class="topic-metadata">

**Author:** [@macbao](https://discourse.vtk.org/u/macbao)\
**Replies:** 0\
**Last updated:** [February 7, 2022, 6:40am UTC](https://discourse.vtk.org/t/vtkreslicecursorwidget-does-not-move-as-quickly-as-the-mouse/7784 "2022-02-07T06:40:55Z")

</div>

select the center of thr Cross Line,when the mouse move,The cross line can not catch up the mouse

---

## [Asynchronous streaming of data from a pipeline](https://discourse.vtk.org/t/asynchronous-streaming-of-data-from-a-pipeline/7782)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 2\
**Last updated:** [February 6, 2022, 10:08am UTC](https://discourse.vtk.org/t/asynchronous-streaming-of-data-from-a-pipeline/7782 "2022-02-06T10:08:34Z")

</div>

Hi Developers I am trying to make a Filter without any output ports and provide it with a Start() method and a Frequency property for setting up how often Update() is called and an internal thread will stream data acros…

---

## [Nvidia-smi](https://discourse.vtk.org/t/nvidia-smi/7780)

<div class="topic-metadata">

**Author:** [@fvitello](https://discourse.vtk.org/u/fvitello)\
**Replies:** 0\
**Last updated:** [February 5, 2022, 9:32am UTC](https://discourse.vtk.org/t/nvidia-smi/7780 "2022-02-05T09:32:04Z")

</div>

Hi all, i am trying to debug my code understanding if I am using the Gpu. Is it normal that my application is not shown in the Nvidia-smi output? Thanks

---

## [Symbol clash and undefined behavior in application integrating VTK wigdets](https://discourse.vtk.org/t/symbol-clash-and-undefined-behavior-in-application-integrating-vtk-wigdets/7778)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.vtk.org/u/jcfr)\
**Replies:** 0\
**Last updated:** [February 4, 2022, 10:36pm UTC](https://discourse.vtk.org/t/symbol-clash-and-undefined-behavior-in-application-integrating-vtk-wigdets/7778 "2022-02-04T22:36:57Z")

</div>

The merge request MR-8885 (BUG: Rename vtkInteractionCallback class to avoid symbol clash) has just been submitted to address undefined behavior and crashes in application integrating one of the following VTK widgets: v…

---

## [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 ……

---

## [How to remove vtkVolumeController without affecting the volume rendering](https://discourse.vtk.org/t/how-to-remove-vtkvolumecontroller-without-affecting-the-volume-rendering/7741)

<div class="topic-metadata">

**Author:** [@stoune](https://discourse.vtk.org/u/stoune)\
**Replies:** 3\
**Last updated:** [February 1, 2022, 4:15pm UTC](https://discourse.vtk.org/t/how-to-remove-vtkvolumecontroller-without-affecting-the-volume-rendering/7741 "2022-02-01T16:15:03Z")

</div>

Hey, The code below is working good, it is rendering a VTI volume from the server, but when I remove the vtkVolumeController, the volume is not rendered I see only a black screen, I want to remove the controllerWidget wi…

---

## [Force actor to fit the renderer size exactly](https://discourse.vtk.org/t/force-actor-to-fit-the-renderer-size-exactly/4285)

<div class="topic-metadata">

**Author:** [@Seekerp](https://discourse.vtk.org/u/Seekerp)\
**Replies:** 7\
**Last updated:** [February 1, 2022, 4:13pm UTC](https://discourse.vtk.org/t/force-actor-to-fit-the-renderer-size-exactly/4285 "2022-02-01T16:13:01Z")

</div>

Hi guys. I have a vtkImageSlice as var actor = vtkImageSlice.newInstance();, and I would like to make it exactly the size of my renderer. Is there a simple way to do this?

---

## [How to configure camera to display X Y slices directions](https://discourse.vtk.org/t/how-to-configure-camera-to-display-x-y-slices-directions/7748)

<div class="topic-metadata">

**Author:** [@stoune](https://discourse.vtk.org/u/stoune)\
**Replies:** 1\
**Last updated:** [February 1, 2022, 12:46pm UTC](https://discourse.vtk.org/t/how-to-configure-camera-to-display-x-y-slices-directions/7748 "2022-02-01T12:46:18Z")

</div>

Hey, I’m working on a little viewer that display image slices of a VTI file, (AXIAL, CORONAL, SAGITTAL), Using the example below I was able to display Z direction, but it doesn’t work for X and Y, I know I must change ca…

---

## [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…

---

## [Como puedo escribir vtkLineWidget a un archivo stl ?](https://discourse.vtk.org/t/como-puedo-escribir-vtklinewidget-a-un-archivo-stl/7719)

<div class="topic-metadata">

**Author:** [@Javi-r](https://discourse.vtk.org/u/Javi-r)\
**Replies:** 6\
**Last updated:** [January 27, 2022, 10:21am UTC](https://discourse.vtk.org/t/como-puedo-escribir-vtklinewidget-a-un-archivo-stl/7719 "2022-01-27T10:21:19Z")

</div>

Como puedo optener polydata de un widget para escribirla en un stl ? pseudocode: writer.setInputData(lineWidget.getOutputData());

---

## [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/…

---

## [Proposal: implementing fast data set topology statistics](https://discourse.vtk.org/t/proposal-implementing-fast-data-set-topology-statistics/7712)

<div class="topic-metadata">

**Author:** [@manuylovich](https://discourse.vtk.org/u/manuylovich)\
**Replies:** 6\
**Last updated:** [January 25, 2022, 4:31pm UTC](https://discourse.vtk.org/t/proposal-implementing-fast-data-set-topology-statistics/7712 "2022-01-25T16:31:27Z")

</div>

VTK has an abstract method vtkIdType vtkDataObject::GetNumberOfElements(int type) to get the number of points, cells, etc. It has a very fast implementation for any particular data object (vtkPolyData, vtkRectilinearGrid…

---

## [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…

---

## [DeviceOrientationToCamera example page not working](https://discourse.vtk.org/t/deviceorientationtocamera-example-page-not-working/7700)

<div class="topic-metadata">

**Author:** [@Mohamed\_Waheed](https://discourse.vtk.org/u/Mohamed_Waheed)\
**Replies:** 2\
**Last updated:** [January 25, 2022, 12:59pm UTC](https://discourse.vtk.org/t/deviceorientationtocamera-example-page-not-working/7700 "2022-01-25T12:59:51Z")

</div>

Hello, This example does not work, it shows errors in the console here are the errors from firefox 96.0 and here they are from chrome 97.0.4692.99 Thank you.

---

## [InteractiveOrientationWidget loses interactivity once HardwareSelector is used](https://discourse.vtk.org/t/interactiveorientationwidget-loses-interactivity-once-hardwareselector-is-used/7702)

<div class="topic-metadata">

**Author:** [@Mohamed\_Waheed](https://discourse.vtk.org/u/Mohamed_Waheed)\
**Replies:** 2\
**Last updated:** [January 25, 2022, 12:58pm UTC](https://discourse.vtk.org/t/interactiveorientationwidget-loses-interactivity-once-hardwareselector-is-used/7702 "2022-01-25T12:58:45Z")

</div>

Hello, I am trying to use InteractiveOrientationWidget in the same window with HardwareSelector, the problem is, once hardwareSelector.getSourceDataAsync() is called, the InteractiveOrientationWidget loses interactivit…

---

## [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…

[Previous page](https://discourse.vtk.org/latest.md?page=143)

[Next page](https://discourse.vtk.org/latest.md?page=145)
