# Latest

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

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

**Page:** 199

---

## [Enabling Cuda throws error in VTK Build via VS2017](https://discourse.vtk.org/t/enabling-cuda-throws-error-in-vtk-build-via-vs2017/3843)

<div class="topic-metadata">

**Author:** [@McDave17](https://discourse.vtk.org/u/McDave17)\
**Replies:** 24\
**Last updated:** [October 1, 2020, 6:08pm UTC](https://discourse.vtk.org/t/enabling-cuda-throws-error-in-vtk-build-via-vs2017/3843 "2020-10-01T18:08:45Z")

</div>

Hello When I build VTK (VTKm and AcceleratorsVTKm enabled) with following options set in CMake on Windows using Visual Studio 2017 Community the build crashes with an error directive: Error: When VTK-m is built with CU…

---

## [ExtractSurface: does resulting mesh fit the points exactly?](https://discourse.vtk.org/t/extractsurface-does-resulting-mesh-fit-the-points-exactly/4336)

<div class="topic-metadata">

**Author:** [@marcSteiner](https://discourse.vtk.org/u/marcSteiner)\
**Replies:** 0\
**Last updated:** [October 2, 2020, 6:42am UTC](https://discourse.vtk.org/t/extractsurface-does-resulting-mesh-fit-the-points-exactly/4336 "2020-10-02T06:42:09Z")

</div>

Hi there, I have a point set I wish to triangulate. Do the VTK methods {ExtractSurface, Poisson, Powercrust} create meshes that go exactly through the input points? Also, my point set has a rather complex topology: it r…

---

## [Disabling Rotate and Zoom in vtkInteractorStyleImage](https://discourse.vtk.org/t/disabling-rotate-and-zoom-in-vtkinteractorstyleimage/4327)

<div class="topic-metadata">

**Author:** [@frenchnq](https://discourse.vtk.org/u/frenchnq)\
**Replies:** 7\
**Last updated:** [October 2, 2020, 2:01am UTC](https://discourse.vtk.org/t/disabling-rotate-and-zoom-in-vtkinteractorstyleimage/4327 "2020-10-02T02:01:05Z")

</div>

I’m working on a C# window forms project and trying to disable the zoom and rotate methods of my rendered window. I’m currently using the vtkInteractorStyleImage for my interactor, but haven’t been successful in overrid…

---

## [how to get difference between two volumetric meshes to calculate the deformation distance for each node](https://discourse.vtk.org/t/how-to-get-difference-between-two-volumetric-meshes-to-calculate-the-deformation-distance-for-each-node/4325)

<div class="topic-metadata">

**Author:** [@isuruwi](https://discourse.vtk.org/u/isuruwi)\
**Replies:** 1\
**Last updated:** [October 1, 2020, 9:35pm UTC](https://discourse.vtk.org/t/how-to-get-difference-between-two-volumetric-meshes-to-calculate-the-deformation-distance-for-each-node/4325 "2020-10-01T21:35:26Z")

</div>

I have created a volumetric mesh using gmsh and then exported it as a .vtk file format (i.e. as an unstructured grid). Then fed this into a vtk program and add different deformations (i.e. scaling, rotate, translation) t…

---

## [Crash Using Vtk in QML](https://discourse.vtk.org/t/crash-using-vtk-in-qml/4250)

<div class="topic-metadata">

**Author:** [@eustache](https://discourse.vtk.org/u/eustache)\
**Replies:** 2\
**Last updated:** [October 1, 2020, 1:51pm UTC](https://discourse.vtk.org/t/crash-using-vtk-in-qml/4250 "2020-10-01T13:51:06Z")

</div>

When migrating from qt5.9 vtk8 ubuntu 16 to qt5.15 vtk8 ubuntu 20 we started to have crashes within VTK when rendering the scene. We are using Using vtk debug it looks like it’s pointing to this line: https://gitla…

---

## [Extract Surface from a signed distance field](https://discourse.vtk.org/t/extract-surface-from-a-signed-distance-field/4332)

<div class="topic-metadata">

**Author:** [@a-jp1](https://discourse.vtk.org/u/a-jp1)\
**Replies:** 0\
**Last updated:** [October 1, 2020, 12:39pm UTC](https://discourse.vtk.org/t/extract-surface-from-a-signed-distance-field/4332 "2020-10-01T12:39:19Z")

</div>

Hi, I have some code given to me that provides the signed distance at the cell centres of an unstructured mesh, the signed distance represents the distance to the surface of some initial geometry, also provided. I’ve b…

---

## [Deprecated vtkUnstructuredGrid::SetCells](https://discourse.vtk.org/t/deprecated-vtkunstructuredgrid-setcells/4277)

<div class="topic-metadata">

**Author:** [@RonRahaman](https://discourse.vtk.org/u/RonRahaman)\
**Replies:** 2\
**Last updated:** [September 30, 2020, 2:25pm UTC](https://discourse.vtk.org/t/deprecated-vtkunstructuredgrid-setcells/4277 "2020-09-30T14:25:07Z")

</div>

One of our existing apps uses a deprecated form of vtkUnstructuredGrid::SetCells. Here it is in an older Doxygen: void vtkUnstructuredGrid::SetCells ( vtkUnsignedCharArray \*cellTypes, vtkIdTypeArray \*cellLocations,…

---

## [access points of a mesh](https://discourse.vtk.org/t/access-points-of-a-mesh/4321)

<div class="topic-metadata">

**Author:** [@pierrectl](https://discourse.vtk.org/u/pierrectl)\
**Replies:** 2\
**Last updated:** [September 30, 2020, 11:48am UTC](https://discourse.vtk.org/t/access-points-of-a-mesh/4321 "2020-09-30T11:48:27Z")

</div>

Hello everyone, I need to work with 3d points of a loaded mesh. Do you provide any example which shows how to access points of a mesh? Thank you for help!

---

## [it is a Qt VTK question ?](https://discourse.vtk.org/t/it-is-a-qt-vtk-question/4189)

<div class="topic-metadata">

**Author:** [@appollosputnik](https://discourse.vtk.org/u/appollosputnik)\
**Replies:** 1\
**Last updated:** [September 30, 2020, 4:48am UTC](https://discourse.vtk.org/t/it-is-a-qt-vtk-question/4189 "2020-09-30T04:48:27Z")

</div>

Hi folks I need some idea on how we can use QtVTKViews in a QML Window ? I compiled vtk with Qt and found it is generating QtVtkViews but how can we use it in QML Surface ? If anyone knowes I need help…

---

## [How to file holes in STL files](https://discourse.vtk.org/t/how-to-file-holes-in-stl-files/4200)

<div class="topic-metadata">

**Author:** [@gautam\_kumar\_singh](https://discourse.vtk.org/u/gautam_kumar_singh)\
**Replies:** 1\
**Last updated:** [September 30, 2020, 4:43am UTC](https://discourse.vtk.org/t/how-to-file-holes-in-stl-files/4200 "2020-09-30T04:43:59Z")

</div>

Hello, I am wondering how to fill holes appear in STL file. Please suggest

---

## [No Changes when setting shade](https://discourse.vtk.org/t/no-changes-when-setting-shade/4317)

<div class="topic-metadata">

**Author:** [@samm-vs](https://discourse.vtk.org/u/samm-vs)\
**Replies:** 3\
**Last updated:** [September 29, 2020, 8:09pm UTC](https://discourse.vtk.org/t/no-changes-when-setting-shade/4317 "2020-09-29T20:09:32Z")

</div>

I am rendering a volume and I tried to set the shade to 1 just like https://kitware.github.io/vtk-js/examples/TestVolumeTypes.html but the example showed an obvious different while mine did not. I was just curious if the…

---

## [Convert VTK-m-Contour output to vtkPolyData](https://discourse.vtk.org/t/convert-vtk-m-contour-output-to-vtkpolydata/4315)

<div class="topic-metadata">

**Author:** [@McDave17](https://discourse.vtk.org/u/McDave17)\
**Replies:** 1\
**Last updated:** [September 29, 2020, 1:31pm UTC](https://discourse.vtk.org/t/convert-vtk-m-contour-output-to-vtkpolydata/4315 "2020-09-29T13:31:58Z")

</div>

Im trying to convert my contour output back to a vtkPolyData object and I’m having trouble to figure out the correct parameters for the fromvtkm::Convert method. Here’s my code: #include \<vtkmlib/ImageDataConverter.h\> …

---

## [VTK Polydata dataset with points only?](https://discourse.vtk.org/t/vtk-polydata-dataset-with-points-only/4293)

<div class="topic-metadata">

**Author:** [@pjdf](https://discourse.vtk.org/u/pjdf)\
**Replies:** 5\
**Last updated:** [September 29, 2020, 12:55pm UTC](https://discourse.vtk.org/t/vtk-polydata-dataset-with-points-only/4293 "2020-09-29T12:55:59Z")

</div>

I have a legacy POLYDATA dataset with only points and associated SCALARS (no CELLS) from some hydrologic simulation code. The only important piece of information is the location of the points themselves. I have two ques…

---

## [How to use polydata and imagedata same time](https://discourse.vtk.org/t/how-to-use-polydata-and-imagedata-same-time/4308)

<div class="topic-metadata">

**Author:** [@11112](https://discourse.vtk.org/u/11112)\
**Replies:** 2\
**Last updated:** [September 29, 2020, 1:36am UTC](https://discourse.vtk.org/t/how-to-use-polydata-and-imagedata-same-time/4308 "2020-09-29T01:36:13Z")

</div>

Hey guys, I am now building a medical project and need some tips. This project is for surgeon. A doctor need to implant bone nail and interactive with nails. I have bone image data from CT, and STL file of nails. I ca…

---

## [git lfs problem](https://discourse.vtk.org/t/git-lfs-problem/4303)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 4\
**Last updated:** [September 28, 2020, 10:29pm UTC](https://discourse.vtk.org/t/git-lfs-problem/4303 "2020-09-28T22:29:49Z")

</div>

Until 24 Sept I have been able to upload images to vtk-examples with no problems. Now I am getting this message: Uploading LFS objects: 100% (6/6), 678 KB | 0 B/s, done. Enumerating objects: 27, done. Counting objects:…

---

## [Data caching](https://discourse.vtk.org/t/data-caching/4290)

<div class="topic-metadata">

**Author:** [@will.schroeder](https://discourse.vtk.org/u/will.schroeder)\
**Replies:** 3\
**Last updated:** [September 28, 2020, 7:44pm UTC](https://discourse.vtk.org/t/data-caching/4290 "2020-09-28T19:44:51Z")

</div>

Lately @utkarshayachit, @cory.quammen, @will.schroeder and others, at the prompting of various customers and driving use cases, have been thinking about caching VTK objects to reduce memory usage and improve performance.…

---

## [How to generate vtkImageData from mathematical function](https://discourse.vtk.org/t/how-to-generate-vtkimagedata-from-mathematical-function/4305)

<div class="topic-metadata">

**Author:** [@McDave17](https://discourse.vtk.org/u/McDave17)\
**Replies:** 10\
**Last updated:** [September 28, 2020, 3:17pm UTC](https://discourse.vtk.org/t/how-to-generate-vtkimagedata-from-mathematical-function/4305 "2020-09-28T15:17:17Z")

</div>

Hello. I’m trying to generate multiple DataSets containing Cayley surfaces in different levels of detail. The cayley surface is described by following function: f(x, y, z) = 1 - 16xyz - 4x^2 - 4y^2 - 4z^2 No I don’t…

---

## [Topological problems](https://discourse.vtk.org/t/topological-problems/4299)

<div class="topic-metadata">

**Author:** [@cobo](https://discourse.vtk.org/u/cobo)\
**Replies:** 1\
**Last updated:** [September 26, 2020, 2:42am UTC](https://discourse.vtk.org/t/topological-problems/4299 "2020-09-26T02:42:10Z")

</div>

Starting point is a PolyData object that is supposed to be the watertight surface of one or several “bodies” that also does not include any non-manifold edges, but input may not always be like that! I realize that tes…

---

## [Compiling VTK in virtual environment](https://discourse.vtk.org/t/compiling-vtk-in-virtual-environment/4302)

<div class="topic-metadata">

**Author:** [@daluke](https://discourse.vtk.org/u/daluke)\
**Replies:** 0\
**Last updated:** [September 25, 2020, 6:23pm UTC](https://discourse.vtk.org/t/compiling-vtk-in-virtual-environment/4302 "2020-09-25T18:23:56Z")

</div>

I have some trouble compiling VTK (8.9) using a conda virtual environment. While trying to run make, ld cannot find some important shared libraries /usr/bin/ld: cannot find /lib/libc.so.6 /usr/bin/ld: cannot find /usr/…

---

## [Some problems about how to update the image when data is changing continuously](https://discourse.vtk.org/t/some-problems-about-how-to-update-the-image-when-data-is-changing-continuously/4257)

<div class="topic-metadata">

**Author:** [@wudiii](https://discourse.vtk.org/u/wudiii)\
**Replies:** 7\
**Last updated:** [September 25, 2020, 2:29pm UTC](https://discourse.vtk.org/t/some-problems-about-how-to-update-the-image-when-data-is-changing-continuously/4257 "2020-09-25T14:29:02Z")

</div>

I’m a beginner of VTK. I want to display the volume data of a lung which will be changed using some volume deformation algorithm. Frist, I use one thread to open the vtk context, and another thread to perform deformatio…

---

## [vtkSplineFilter: Generating mask image.](https://discourse.vtk.org/t/vtksplinefilter-generating-mask-image/4296)

<div class="topic-metadata">

**Author:** [@Vinod\_Pillai](https://discourse.vtk.org/u/Vinod_Pillai)\
**Replies:** 1\
**Last updated:** [September 25, 2020, 1:58pm UTC](https://discourse.vtk.org/t/vtksplinefilter-generating-mask-image/4296 "2020-09-25T13:58:20Z")

</div>

I have some control points . I am using vtkSplineFilter to uniformly subdivide and generate a closed polyline from these control points. I would like to generate a mask image using the spline filter output, where the re…

---

## [Black image when using offscreen rendering inside Qt application](https://discourse.vtk.org/t/black-image-when-using-offscreen-rendering-inside-qt-application/3935)

<div class="topic-metadata">

**Author:** [@hkroeger](https://discourse.vtk.org/u/hkroeger)\
**Replies:** 7\
**Last updated:** [September 25, 2020, 1:36pm UTC](https://discourse.vtk.org/t/black-image-when-using-offscreen-rendering-inside-qt-application/3935 "2020-09-25T13:36:33Z")

</div>

I have written a library, which shall produce some rendering of scenes into images using VTK (no actual interactive 3D windows). I have two executables from which the library is used: one command line tool and a Qt base…

---

## [how to 3d volume render numpy array](https://discourse.vtk.org/t/how-to-3d-volume-render-numpy-array/4261)

<div class="topic-metadata">

**Author:** [@YolkandWhite](https://discourse.vtk.org/u/YolkandWhite)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 5:21am UTC](https://discourse.vtk.org/t/how-to-3d-volume-render-numpy-array/4261 "2020-09-25T05:21:09Z")

</div>

I’m trying to volume render an 3d numpy array with vtk python. I used to render it by getting the stack of images, but I’m trying to volume render with an 3d numpy array instead of stack of images. this picture below …

---

## [Supercomputing 2020 - Kitware wants to promote your work!](https://discourse.vtk.org/t/supercomputing-2020-kitware-wants-to-promote-your-work/4289)

<div class="topic-metadata">

**Author:** [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)\
**Replies:** 0\
**Last updated:** [September 24, 2020, 1:47pm UTC](https://discourse.vtk.org/t/supercomputing-2020-kitware-wants-to-promote-your-work/4289 "2020-09-24T13:47:11Z")

</div>

Kitware wants to promote your work at Supercomputing 2020. Kitware would like to show your compelling images, videos, and entire applications enabled by VTK at our virtual booth at this year’s Supercomputing conference .…

---

## [VTK](https://discourse.vtk.org/t/vtk/4276)

<div class="topic-metadata">

**Author:** [@cyAAA111](https://discourse.vtk.org/u/cyAAA111)\
**Replies:** 4\
**Last updated:** [September 24, 2020, 6:30am UTC](https://discourse.vtk.org/t/vtk/4276 "2020-09-24T06:30:57Z")

</div>

Excuse me, how to use volume data to achieve 10000X10000X1000 resolution drawing, thank you very much.

---

## [VTK WebAssembly, vtkImageCanvasSource2D, and pthread\_attr\_setscope issue](https://discourse.vtk.org/t/vtk-webassembly-vtkimagecanvassource2d-and-pthread-attr-setscope-issue/4280)

<div class="topic-metadata">

**Author:** [@Donny\_Zimmerman](https://discourse.vtk.org/u/Donny_Zimmerman)\
**Replies:** 3\
**Last updated:** [September 24, 2020, 3:37am UTC](https://discourse.vtk.org/t/vtk-webassembly-vtkimagecanvassource2d-and-pthread-attr-setscope-issue/4280 "2020-09-24T03:37:25Z")

</div>

I am trying to use vtkImageCanvasSource2D with WebAssembly and I am getting a runtime error “missing function: pthread\_attr\_setscope”. I think this is called when vtkImageCanvasSource2D updates. When I compile the projec…

---

## [\[vtk.js\] vtkTubeFilter only creates tube for first line cell](https://discourse.vtk.org/t/vtk-js-vtktubefilter-only-creates-tube-for-first-line-cell/4281)

<div class="topic-metadata">

**Author:** [@banesullivan](https://discourse.vtk.org/u/banesullivan)\
**Replies:** 2\
**Last updated:** [September 23, 2020, 4:22pm UTC](https://discourse.vtk.org/t/vtk-js-vtktubefilter-only-creates-tube-for-first-line-cell/4281 "2020-09-23T16:22:54Z")

</div>

If I manually create some poly data and pass it to the vtkTubeFilter, the output only shows a tube for the first cell (0th index). I would expect the tube filter to produce a tube around every line cell much like the VT…

---

## [VTK-based annotation tool](https://discourse.vtk.org/t/vtk-based-annotation-tool/4273)

<div class="topic-metadata">

**Author:** [@JDo8](https://discourse.vtk.org/u/JDo8)\
**Replies:** 1\
**Last updated:** [September 23, 2020, 4:04pm UTC](https://discourse.vtk.org/t/vtk-based-annotation-tool/4273 "2020-09-23T16:04:51Z")

</div>

I’m evaluating VTK as a framework for a python-based annotation tool. My goal is to use e.g. cubes to annotate 3D data. Is this a viable option, do you have a better suggestion? Is it possible to “drag” a corner or sid…

---

## [Compiling SlicerCAT for MAC OS](https://discourse.vtk.org/t/compiling-slicercat-for-mac-os/4274)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.vtk.org/u/flaviu2)\
**Replies:** 2\
**Last updated:** [September 23, 2020, 4:41am UTC](https://discourse.vtk.org/t/compiling-slicercat-for-mac-os/4274 "2020-09-23T04:41:22Z")

</div>

I am trying to compile SlicerCAT for IPad. But according to compiling cook book: https://slicer.readthedocs.io/en/latest/developer\_guide/build\_instructions/macos.html#prerequisites I need also QT5, right ? So, this imp…

---

## [Allocate vs. SetNumberOfPoints](https://discourse.vtk.org/t/allocate-vs-setnumberofpoints/4278)

<div class="topic-metadata">

**Author:** [@RonRahaman](https://discourse.vtk.org/u/RonRahaman)\
**Replies:** 4\
**Last updated:** [September 22, 2020, 10:39pm UTC](https://discourse.vtk.org/t/allocate-vs-setnumberofpoints/4278 "2020-09-22T22:39:13Z")

</div>

For vtkPoints and other similar objects, when should I use Allocate and when should I use SetNumberOfPoints?

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

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