# Latest

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

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

**Page:** 83

---

## [How to set the font size for vtkLegendScaleActor](https://discourse.vtk.org/t/how-to-set-the-font-size-for-vtklegendscaleactor/11732)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 3\
**Last updated:** [June 19, 2023, 9:16am UTC](https://discourse.vtk.org/t/how-to-set-the-font-size-for-vtklegendscaleactor/11732 "2023-06-19T09:16:34Z")

</div>

I want to use the vtkLegendScaleActor in my project, but I can not find a way to set the font size. I have tested: legendScaleActor.GetLegendLabelProperty().SetFontSize(20) legendScaleActor.GetLeftAxis().GetLabelTextPr…

---

## [Access to intermediate points \`vtkContourRepresentation\`](https://discourse.vtk.org/t/access-to-intermediate-points-vtkcontourrepresentation/11755)

<div class="topic-metadata">

**Author:** [@Jens\_Munk\_Hansen](https://discourse.vtk.org/u/Jens_Munk_Hansen)\
**Replies:** 1\
**Last updated:** [June 18, 2023, 7:37pm UTC](https://discourse.vtk.org/t/access-to-intermediate-points-vtkcontourrepresentation/11755 "2023-06-18T19:37:30Z")

</div>

I working with the family of vtkContourWidget specifically to define trajectories on surfaces of organs. I decided to inherit the representation to expose the intermediate points and create an observer which defines orie…

---

## [undefined reference to vtkAOSDataArrayTemplate\<float\>::SetValue(long long) const](https://discourse.vtk.org/t/undefined-reference-to-vtkaosdataarraytemplate-float-setvalue-long-long-const/11754)

<div class="topic-metadata">

**Author:** [@lake\_lagunita](https://discourse.vtk.org/u/lake_lagunita)\
**Replies:** 0\
**Last updated:** [June 18, 2023, 4:44pm UTC](https://discourse.vtk.org/t/undefined-reference-to-vtkaosdataarraytemplate-float-setvalue-long-long-const/11754 "2023-06-18T16:44:39Z")

</div>

Hello, I am trying to read a unstructuredGrid and display its displacement using vtk. However, when I am building the code using vscode, I encountered an error saying undefined reference to \`vtkAOSDataArrayTemplate::Se…

---

## [Error when compiling VTK support for opencascad?](https://discourse.vtk.org/t/error-when-compiling-vtk-support-for-opencascad/11637)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 4\
**Last updated:** [June 18, 2023, 1:23pm UTC](https://discourse.vtk.org/t/error-when-compiling-vtk-support-for-opencascad/11637 "2023-06-18T13:23:46Z")

</div>

When compiling the latest OCC: commit 8748042259f22d72b3b076bc5433a54ca42734e4 (origin/master, origin/HEAD) Author: akaftasev \<akaftasev@opencascade.com\> Date: Mon May 22 12:00:32 2023 +0100 against VTK V9.2.6,I got …

---

## [How to use GPU rendering when using qquickvtkitem](https://discourse.vtk.org/t/how-to-use-gpu-rendering-when-using-qquickvtkitem/11752)

<div class="topic-metadata">

**Author:** [@notThisMoment](https://discourse.vtk.org/u/notThisMoment)\
**Replies:** 0\
**Last updated:** [June 18, 2023, 9:17am UTC](https://discourse.vtk.org/t/how-to-use-gpu-rendering-when-using-qquickvtkitem/11752 "2023-06-18T09:17:10Z")

</div>

Always use the CPU instead of the GPU when rendering, even when vtkopenglrenderwindow is used

---

## [how to create vtk mesh with texture](https://discourse.vtk.org/t/how-to-create-vtk-mesh-with-texture/11749)

<div class="topic-metadata">

**Author:** [@ZUNTING\_HU](https://discourse.vtk.org/u/ZUNTING_HU)\
**Replies:** 0\
**Last updated:** [June 17, 2023, 10:21am UTC](https://discourse.vtk.org/t/how-to-create-vtk-mesh-with-texture/11749 "2023-06-17T10:21:01Z")

</div>

I have one mesh in memory , one image in memory and every vertex texture coordinate in the image. how to create vtk mesh polydate with this source?

---

## [GetCenter for each single volume in vtkMultiVolume](https://discourse.vtk.org/t/getcenter-for-each-single-volume-in-vtkmultivolume/11717)

<div class="topic-metadata">

**Author:** [@wasp](https://discourse.vtk.org/u/wasp)\
**Replies:** 2\
**Last updated:** [June 17, 2023, 9:46am UTC](https://discourse.vtk.org/t/getcenter-for-each-single-volume-in-vtkmultivolume/11717 "2023-06-17T09:46:05Z")

</div>

Hello there! I recently started playing with vtk and I am using vtkVolume to visualize medical images. I want to overlay two images (CT and MR) on top of each other and match them. I’m using vtkMultiVolume for this and …

---

## [How can I use boxwidget to cut the DICOM body rendered result and keep the outer part?](https://discourse.vtk.org/t/how-can-i-use-boxwidget-to-cut-the-dicom-body-rendered-result-and-keep-the-outer-part/11746)

<div class="topic-metadata">

**Author:** [@WYM7574](https://discourse.vtk.org/u/WYM7574)\
**Replies:** 0\
**Last updated:** [June 17, 2023, 3:15am UTC](https://discourse.vtk.org/t/how-can-i-use-boxwidget-to-cut-the-dicom-body-rendered-result-and-keep-the-outer-part/11746 "2023-06-17T03:15:10Z")

</div>

I used vtkboxwidget and SetClippingPlanes for cutting, but only the inner part can be displayed, I want to show the outer part, what should I do?

---

## [Recommended way of reorienting volume](https://discourse.vtk.org/t/recommended-way-of-reorienting-volume/11742)

<div class="topic-metadata">

**Author:** [@mortifiedpenguin](https://discourse.vtk.org/u/mortifiedpenguin)\
**Replies:** 2\
**Last updated:** [June 17, 2023, 2:31am UTC](https://discourse.vtk.org/t/recommended-way-of-reorienting-volume/11742 "2023-06-17T02:31:00Z")

</div>

Hi all, I am working with medical volume data, and I want to initially reorient the volume so it is always in the axial view. As far as I can see there are two ways I could do this. Either using vtkImageReslice, which I …

---

## [How can I combine a series of polydata to a 3D object in c++?](https://discourse.vtk.org/t/how-can-i-combine-a-series-of-polydata-to-a-3d-object-in-c/11726)

<div class="topic-metadata">

**Author:** [@yen](https://discourse.vtk.org/u/yen)\
**Replies:** 6\
**Last updated:** [June 16, 2023, 11:59pm UTC](https://discourse.vtk.org/t/how-can-i-combine-a-series-of-polydata-to-a-3d-object-in-c/11726 "2023-06-16T23:59:44Z")

</div>

Hello, I am a newcomer to VTK recently. Now I have a task to finish. I need to construct a 3D object from a several sections of an object. To be more specifically, I need to first construct a section from multiple points…

---

## [Reusing a QVTKRenderWindowInteractor Widget after closing the window using close/X button](https://discourse.vtk.org/t/reusing-a-qvtkrenderwindowinteractor-widget-after-closing-the-window-using-close-x-button/11669)

<div class="topic-metadata">

**Author:** [@tossin](https://discourse.vtk.org/u/tossin)\
**Replies:** 3\
**Last updated:** [June 13, 2023, 9:20pm UTC](https://discourse.vtk.org/t/reusing-a-qvtkrenderwindowinteractor-widget-after-closing-the-window-using-close-x-button/11669 "2023-06-13T21:20:58Z")

</div>

Hello all, I have a PyQt application with a QMainWindow that opens a subwindow/QWidget. The subwindow contains a QVTKRenderWindowInteractor widget. I want to be able to call the subwindow, close it, and then re-open it…

---

## [Is it a bug?](https://discourse.vtk.org/t/is-it-a-bug/11739)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [June 16, 2023, 6:53am UTC](https://discourse.vtk.org/t/is-it-a-bug/11739 "2023-06-16T06:53:32Z")

</div>

Hi, I think a bug was placed in vtk-9.2.2. In vtkResliceCursorRepresentation class at about line 309, line 310. in void vtkResliceCursorRepresentation::ResetCamera() function. It defined a vector of 3 dimensions like: d…

---

## [invert a lookup table](https://discourse.vtk.org/t/invert-a-lookup-table/1210)

<div class="topic-metadata">

**Author:** [@PBrockmann](https://discourse.vtk.org/u/PBrockmann)\
**Replies:** 3\
**Last updated:** [June 16, 2023, 1:17am UTC](https://discourse.vtk.org/t/invert-a-lookup-table/1210 "2023-06-16T01:17:06Z")

</div>

Is there a function to invert a lookup table from vtk (vtk.js) ? This is a button to do that from paraview:

---

## [VTK java.lang.UnsatisfiedLinkError](https://discourse.vtk.org/t/vtk-java-lang-unsatisfiedlinkerror/11719)

<div class="topic-metadata">

**Author:** [@Salu\_Ramos](https://discourse.vtk.org/u/Salu_Ramos)\
**Replies:** 5\
**Last updated:** [June 15, 2023, 3:04pm UTC](https://discourse.vtk.org/t/vtk-java-lang-unsatisfiedlinkerror/11719 "2023-06-15T15:04:32Z")

</div>

Trying to run/debug my project using intellij (windows), got errors like: java.lang.UnsatisfiedLinkError: no vtk{Anything} in java.library.path {Anything} can be any class of vtk i’m trying to use, for example: java.l…

---

## [Really Fast Isocontouring - Blog post](https://discourse.vtk.org/t/really-fast-isocontouring-blog-post/11706)

<div class="topic-metadata">

**Author:** [@will.schroeder](https://discourse.vtk.org/u/will.schroeder)\
**Replies:** 2\
**Last updated:** [June 15, 2023, 12:24am UTC](https://discourse.vtk.org/t/really-fast-isocontouring-blog-post/11706 "2023-06-15T00:24:13Z")

</div>

Some folks here may be interested in this post. It discusses continuous (vtkFlyingEdges3D) and discrete (vtkSurfaceNets3D) isocontouring: https://www.kitware.com/really-fast-isocontouring/

---

## [how to zoom with scroll wheel through mouse pointer in "VTK"](https://discourse.vtk.org/t/how-to-zoom-with-scroll-wheel-through-mouse-pointer-in-vtk/11705)

<div class="topic-metadata">

**Author:** [@Jaafar\_Nasrabadi](https://discourse.vtk.org/u/Jaafar_Nasrabadi)\
**Replies:** 1\
**Last updated:** [June 14, 2023, 10:32pm UTC](https://discourse.vtk.org/t/how-to-zoom-with-scroll-wheel-through-mouse-pointer-in-vtk/11705 "2023-06-14T22:32:22Z")

</div>

I have developed an app to process 3D STL files. How to zoom in the screen towards the mouse pointer instead of the center of screen?

---

## [vtkDebugLeaks detected some class I didn't use](https://discourse.vtk.org/t/vtkdebugleaks-detected-some-class-i-didnt-use/11712)

<div class="topic-metadata">

**Author:** [@Miu\_Lee](https://discourse.vtk.org/u/Miu_Lee)\
**Replies:** 2\
**Last updated:** [June 14, 2023, 3:08pm UTC](https://discourse.vtk.org/t/vtkdebugleaks-detected-some-class-i-didnt-use/11712 "2023-06-14T15:08:19Z")

</div>

I used QVTKwidget to show some 3d model and when I closed the application window, the error window showed up.

---

## [Have anybody did experiment about the pCR predication on the I-SPY 1 or I-SPY 1 breast cancer dataset?](https://discourse.vtk.org/t/have-anybody-did-experiment-about-the-pcr-predication-on-the-i-spy-1-or-i-spy-1-breast-cancer-dataset/11708)

<div class="topic-metadata">

**Author:** [@Ian\_Ben](https://discourse.vtk.org/u/Ian_Ben)\
**Replies:** 3\
**Last updated:** [June 14, 2023, 12:02pm UTC](https://discourse.vtk.org/t/have-anybody-did-experiment-about-the-pcr-predication-on-the-i-spy-1-or-i-spy-1-breast-cancer-dataset/11708 "2023-06-14T12:02:10Z")

</div>

I was trying to do some experiment about the pCR prediction using the I-SPY 1 or I-SPY 2 DCE MRI dataset. I was using a 3D densenet and T2 post-contrast, but the performance is terrible (less than 70%). Anybody did such …

---

## [Questions about ImageCPRMapper](https://discourse.vtk.org/t/questions-about-imagecprmapper/11683)

<div class="topic-metadata">

**Author:** [@Xoz](https://discourse.vtk.org/u/Xoz)\
**Replies:** 1\
**Last updated:** [June 14, 2023, 11:22am UTC](https://discourse.vtk.org/t/questions-about-imagecprmapper/11683 "2023-06-14T11:22:57Z")

</div>

Hi everyone, I’ve done with the cpr function for a long time and recently finished a demo which almost meet the demand of efficiency based on webgl shader, then I saw that vtk added an ImageCPRMapper in recent updates w…

---

## [vtkGeometryFilter output missing some cellData](https://discourse.vtk.org/t/vtkgeometryfilter-output-missing-some-celldata/11685)

<div class="topic-metadata">

**Author:** [@Albers\_Steven](https://discourse.vtk.org/u/Albers_Steven)\
**Replies:** 3\
**Last updated:** [June 14, 2023, 3:18am UTC](https://discourse.vtk.org/t/vtkgeometryfilter-output-missing-some-celldata/11685 "2023-06-14T03:18:30Z")

</div>

I want to convert an unstructured grid to polydata for rendering. However, when I use vtkGeometryFilter for the conversion, I noticed that some CellData arrays are missing in the resulting file. The original vtk file con…

---

## [vtkLineSource has setPoint1(Vector3) but only setPoint2(x,y,z)?](https://discourse.vtk.org/t/vtklinesource-has-setpoint1-vector3-but-only-setpoint2-x-y-z/11704)

<div class="topic-metadata">

**Author:** [@JohnSkinner](https://discourse.vtk.org/u/JohnSkinner)\
**Replies:** 0\
**Last updated:** [June 13, 2023, 5:32pm UTC](https://discourse.vtk.org/t/vtklinesource-has-setpoint1-vector3-but-only-setpoint2-x-y-z/11704 "2023-06-13T17:32:10Z")

</div>

probably should have a setPoint2(Vector3) also. noted for vtk.js 28.2.1

---

## [lookUpTable-\>SetRange() does not work?](https://discourse.vtk.org/t/lookuptable-setrange-does-not-work/11703)

<div class="topic-metadata">

**Author:** [@lake\_lagunita](https://discourse.vtk.org/u/lake_lagunita)\
**Replies:** 1\
**Last updated:** [June 13, 2023, 4:24pm UTC](https://discourse.vtk.org/t/lookuptable-setrange-does-not-work/11703 "2023-06-13T16:24:16Z")

</div>

I am a beginner and I am trying to visualize a .vtu file (test.vtu) and show the points’ Z direction displacement. The follwing is my cxx and CMake code: ReadUnstructuredGrid.cxx: #include \<vtkActor.h\> #include \<vtkDa…

---

## [How to integrate VTK with OpenGL?](https://discourse.vtk.org/t/how-to-integrate-vtk-with-opengl/11526)

<div class="topic-metadata">

**Author:** [@fghoussen](https://discourse.vtk.org/u/fghoussen)\
**Replies:** 16\
**Last updated:** [June 13, 2023, 12:56pm UTC](https://discourse.vtk.org/t/how-to-integrate-vtk-with-opengl/11526 "2023-06-13T12:56:58Z")

</div>

How to integrate VTK with OpenGL? I have a regular VTK pipeline that works OK: I use a vtkPolyData, set it as input to a vtkXXXFilter, use a vtkPolyDataMapper, and render it in a vtkRenderWindow (using a vtkRenderer). A…

---

## [QVTKOpenGLNativeWidget::render() with pcl::PCLVisualizer is slow after upgrade from 8.2 to 9.2.5](https://discourse.vtk.org/t/qvtkopenglnativewidget-render-with-pcl-pclvisualizer-is-slow-after-upgrade-from-8-2-to-9-2-5/11350)

<div class="topic-metadata">

**Author:** [@Thorsten\_Ottosen](https://discourse.vtk.org/u/Thorsten_Ottosen)\
**Replies:** 11\
**Last updated:** [June 13, 2023, 12:52pm UTC](https://discourse.vtk.org/t/qvtkopenglnativewidget-render-with-pcl-pclvisualizer-is-slow-after-upgrade-from-8-2-to-9-2-5/11350 "2023-06-13T12:52:30Z")

</div>

Dear VTK experts, We have been in the process of upgrading our application from Qt5.14 → Qt6.x VTK 8.2 → 9.2.x PCL 1.11.1 → 1.13.x On windows 10 with Visual C++ 2019 in C++17 mode. We use QVTKOpenGLNativeWidget, vtk…

---

## [Trying to understand how vtkImplicitModeller works](https://discourse.vtk.org/t/trying-to-understand-how-vtkimplicitmodeller-works/11688)

<div class="topic-metadata">

**Author:** [@lake\_lagunita](https://discourse.vtk.org/u/lake_lagunita)\
**Replies:** 1\
**Last updated:** [June 13, 2023, 12:39pm UTC](https://discourse.vtk.org/t/trying-to-understand-how-vtkimplicitmodeller-works/11688 "2023-06-13T12:39:48Z")

</div>

I am trying to understand how vtkImplicitModeller works by studying the Hello example and tuning the vtkImplicitModeller parameters. I now know the meaning of SetSampleDimensions and SetModelBounds by changing these two…

---

## [Unit tests cannot be automatically exited when running alone](https://discourse.vtk.org/t/unit-tests-cannot-be-automatically-exited-when-running-alone/11700)

<div class="topic-metadata">

**Author:** [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)\
**Replies:** 0\
**Last updated:** [June 13, 2023, 9:17am UTC](https://discourse.vtk.org/t/unit-tests-cannot-be-automatically-exited-when-running-alone/11700 "2023-06-13T09:17:44Z")

</div>

/\*========================================================================= Program: Visualization Toolkit Module: TestAngleWidget2D.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights r…

---

## [Are there any plans (or interest in) making a Julia interface for VTK?](https://discourse.vtk.org/t/are-there-any-plans-or-interest-in-making-a-julia-interface-for-vtk/11653)

<div class="topic-metadata">

**Author:** [@rexthor](https://discourse.vtk.org/u/rexthor)\
**Replies:** 5\
**Last updated:** [June 12, 2023, 1:30pm UTC](https://discourse.vtk.org/t/are-there-any-plans-or-interest-in-making-a-julia-interface-for-vtk/11653 "2023-06-12T13:30:34Z")

</div>

Are there any plans (or interest in) making a Julia interface for VTK? I use VTK from Python a lot, and the bindings are great … the bindings for Julia are essentially nonexistent other than write-your-own (which, when …

---

## [deepCopy in vtk.js](https://discourse.vtk.org/t/deepcopy-in-vtk-js/11651)

<div class="topic-metadata">

**Author:** [@stoune](https://discourse.vtk.org/u/stoune)\
**Replies:** 5\
**Last updated:** [June 12, 2023, 11:30am UTC](https://discourse.vtk.org/t/deepcopy-in-vtk-js/11651 "2023-06-12T11:30:53Z")

</div>

Hi, In the C++ version we can deepCopy a polyData, but in vtk.js I don’t know how to do it because there is not deepCopy function callable from the polyData object, is there a way to do it? Thank you

---

## [VTK update 3D PointCloud too slow !](https://discourse.vtk.org/t/vtk-update-3d-pointcloud-too-slow/11677)

<div class="topic-metadata">

**Author:** [@hang.wang](https://discourse.vtk.org/u/hang.wang)\
**Replies:** 0\
**Last updated:** [June 12, 2023, 6:25am UTC](https://discourse.vtk.org/t/vtk-update-3d-pointcloud-too-slow/11677 "2023-06-12T06:25:47Z")

</div>

I use the VTK-7.1 and PCL 1.10 and Qt 5.12.8 to show 3D point cloud, it show’s normally the viewer can update everytimes. after I update VTK from 7.1 to 9.2.6, and PCL from 1.10 to 1.13 and Qt from 5 to 6, this problem h…

---

## [About vtkImagePlaneWidget remove or delete vtkImageData from it self.](https://discourse.vtk.org/t/about-vtkimageplanewidget-remove-or-delete-vtkimagedata-from-it-self/11675)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 0\
**Last updated:** [June 12, 2023, 2:40am UTC](https://discourse.vtk.org/t/about-vtkimageplanewidget-remove-or-delete-vtkimagedata-from-it-self/11675 "2023-06-12T02:40:06Z")

</div>

Now, I created a vtkImagePlaneWidget instance, and i set the vtkImageData by SetInputDataConnection(). Now, I want to set another vtkImageData instance, But I don’t konw how to remove the first vtkImageData instance or …

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

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