# Latest

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

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

**Page:** 229

---

## [About the camera perspective](https://discourse.vtk.org/t/about-the-camera-perspective/2223)

<div class="topic-metadata">

**Author:** [@minmin](https://discourse.vtk.org/u/minmin)\
**Replies:** 1\
**Last updated:** [January 8, 2020, 10:45pm UTC](https://discourse.vtk.org/t/about-the-camera-perspective/2223 "2020-01-08T22:45:55Z")

</div>

Can you see from outside the object, but can you see from inside?

---

## [Camera focus on the cursor point](https://discourse.vtk.org/t/camera-focus-on-the-cursor-point/2277)

<div class="topic-metadata">

**Author:** [@ronan\_etesse](https://discourse.vtk.org/u/ronan_etesse)\
**Replies:** 1\
**Last updated:** [January 8, 2020, 10:41pm UTC](https://discourse.vtk.org/t/camera-focus-on-the-cursor-point/2277 "2020-01-08T22:41:13Z")

</div>

Hi evrey one, I am on vtk 8.2, and I try on a 3d view (perspective enable) to zoom with wheel mouse on the current cursor position. For zooming I am using the Dolly function from vtkCamera. I’am zooming then I apply a…

---

## [Problems with multi-touch gestures with current sources](https://discourse.vtk.org/t/problems-with-multi-touch-gestures-with-current-sources/2373)

<div class="topic-metadata">

**Author:** [@nenad-vujicic](https://discourse.vtk.org/u/nenad-vujicic)\
**Replies:** 7\
**Last updated:** [January 8, 2020, 8:23pm UTC](https://discourse.vtk.org/t/problems-with-multi-touch-gestures-with-current-sources/2373 "2020-01-08T20:23:46Z")

</div>

Hello everyone, I built the latest VTK sources from repository (VTK master, VS2017, x64, Qt 5.9.1, Windows 10 Pro), built Examples/GUI/Qt/TouchGestureViewer example and tried it on several machines. I got same problems …

---

## [UseFXAA by default](https://discourse.vtk.org/t/usefxaa-by-default/2390)

<div class="topic-metadata">

**Author:** [@santichialvo](https://discourse.vtk.org/u/santichialvo)\
**Replies:** 1\
**Last updated:** [January 8, 2020, 8:12pm UTC](https://discourse.vtk.org/t/usefxaa-by-default/2390 "2020-01-08T20:12:09Z")

</div>

Hi everyone, In order to avoid antialiasing, there is the possibility to use UseFXAAOn() on every created render. I wanted to ask if there is a way to make this option enabled by default. Regards, Santiago.

---

## [ow to convert vtkImageData to numpy for a RGB image](https://discourse.vtk.org/t/ow-to-convert-vtkimagedata-to-numpy-for-a-rgb-image/2387)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 3\
**Last updated:** [January 8, 2020, 4:43pm UTC](https://discourse.vtk.org/t/ow-to-convert-vtkimagedata-to-numpy-for-a-rgb-image/2387 "2020-01-08T16:43:01Z")

</div>

I want to convert a vtkImageData (3 components) to numpy. For a vtkImageData with 1 components, the following code works: temp = vtk\_to\_numpy(data.GetPointData().GetScalars()) dims = data.GetDimensions() numpy\_data = t…

---

## [vtk.numpy\_interface.dataset\_adapter doesn't work for vtkImageData](https://discourse.vtk.org/t/vtk-numpy-interface-dataset-adapter-doesnt-work-for-vtkimagedata/2342)

<div class="topic-metadata">

**Author:** [@MBG](https://discourse.vtk.org/u/MBG)\
**Replies:** 1\
**Last updated:** [January 7, 2020, 2:07pm UTC](https://discourse.vtk.org/t/vtk-numpy-interface-dataset-adapter-doesnt-work-for-vtkimagedata/2342 "2020-01-07T14:07:58Z")

</div>

vtk.numpy\_interface.dataset\_adapter.WrapDataObject() returns PolyData for vtkImageData(). Is it possible to use this wrapper with vtkImageData?

---

## [raytracing in vtk](https://discourse.vtk.org/t/raytracing-in-vtk/2364)

<div class="topic-metadata">

**Author:** [@svabhishek29](https://discourse.vtk.org/u/svabhishek29)\
**Replies:** 6\
**Last updated:** [January 7, 2020, 8:47am UTC](https://discourse.vtk.org/t/raytracing-in-vtk/2364 "2020-01-07T08:47:47Z")

</div>

hi, i was using Paraviewer and was able to use the OSPRayCaster to render the volume with raycasting to get better lighting and shadows and colors, how can this be achived in vtk in python? thanks

---

## [How vtkMultiBlockDataSet is rendered in vtk](https://discourse.vtk.org/t/how-vtkmultiblockdataset-is-rendered-in-vtk/2352)

<div class="topic-metadata">

**Author:** [@sharon](https://discourse.vtk.org/u/sharon)\
**Replies:** 3\
**Last updated:** [January 7, 2020, 3:02am UTC](https://discourse.vtk.org/t/how-vtkmultiblockdataset-is-rendered-in-vtk/2352 "2020-01-07T03:02:35Z")

</div>

Dear Experts, i put several vtkPolyData into vtkMultiBlockDataSet, i am wondering how vtkMultiBlockDataSet is rendered in VTK if my polyData only contain Lines? It use VBO technique, one VBO for each vtkMultiBlockDataS…

---

## [How to generate a Quadric mesh without topological holes](https://discourse.vtk.org/t/how-to-generate-a-quadric-mesh-without-topological-holes/2381)

<div class="topic-metadata">

**Author:** [@stwalker](https://discourse.vtk.org/u/stwalker)\
**Replies:** 2\
**Last updated:** [January 7, 2020, 1:03am UTC](https://discourse.vtk.org/t/how-to-generate-a-quadric-mesh-without-topological-holes/2381 "2020-01-07T01:03:08Z")

</div>

Hello, I am using vtkQuadric and vtkSampleFunction to generate a quadric surface mesh, however, my application has the requirement that all meshes be closed (by which I mean no holes). I was wondering if there was any w…

---

## [pip install not working when using python-dbg](https://discourse.vtk.org/t/pip-install-not-working-when-using-python-dbg/2374)

<div class="topic-metadata">

**Author:** [@balborian](https://discourse.vtk.org/u/balborian)\
**Replies:** 3\
**Last updated:** [January 4, 2020, 11:27pm UTC](https://discourse.vtk.org/t/pip-install-not-working-when-using-python-dbg/2374 "2020-01-04T23:27:03Z")

</div>

I am interested in installing vtk using python-dbg, but I get this error: miguelito@miguelito:~$ virtualenv --python=/usr/bin/python3-dbg testvtk miguelito@miguelito:~$ source testvtk/bin/activate (testvtk) miguelito@mi…

---

## [vtkCommonInformationKeyManager Destruction Crash / Corrupt vfptr Table](https://discourse.vtk.org/t/vtkcommoninformationkeymanager-destruction-crash-corrupt-vfptr-table/2371)

<div class="topic-metadata">

**Author:** [@Trinian](https://discourse.vtk.org/u/Trinian)\
**Replies:** 4\
**Last updated:** [January 3, 2020, 8:38pm UTC](https://discourse.vtk.org/t/vtkcommoninformationkeymanager-destruction-crash-corrupt-vfptr-table/2371 "2020-01-03T20:38:37Z")

</div>

I’m loading VTK as a visualization plugin from within an MFC application, and when I go to close my application and the plugin is unloaded with FreeLibrary, vtkCommonInformationKeyManager will crash. Immediately before t…

---

## [SelectEnclosedPoints Tolerance](https://discourse.vtk.org/t/selectenclosedpoints-tolerance/1161)

<div class="topic-metadata">

**Author:** [@Caroline](https://discourse.vtk.org/u/Caroline)\
**Replies:** 1\
**Last updated:** [January 2, 2020, 11:13pm UTC](https://discourse.vtk.org/t/selectenclosedpoints-tolerance/1161 "2020-01-02T23:13:19Z")

</div>

Dear Forum, I am looking for help in understanding how the tolerance for vtkSelectEnclosedPoints works please. I have been using vtkSelectEnclosedPoints to identify which points on a rectilinear grid lie within a vtkPo…

---

## [ParaView Programmable Source with vtkImageData output](https://discourse.vtk.org/t/paraview-programmable-source-with-vtkimagedata-output/2341)

<div class="topic-metadata">

**Author:** [@MBG](https://discourse.vtk.org/u/MBG)\
**Replies:** 3\
**Last updated:** [January 2, 2020, 10:56pm UTC](https://discourse.vtk.org/t/paraview-programmable-source-with-vtkimagedata-output/2341 "2020-01-02T22:56:14Z")

</div>

The code below is based on I try to create ParaView Programmable Source by the code below. I can see the correct properties on ParaView “Information” tab and there are no errors but the actual geometry isn’t avail…

---

## [How to simulate heating coil ?](https://discourse.vtk.org/t/how-to-simulate-heating-coil/2344)

<div class="topic-metadata">

**Author:** [@stasbar](https://discourse.vtk.org/u/stasbar)\
**Replies:** 1\
**Last updated:** [January 2, 2020, 10:31pm UTC](https://discourse.vtk.org/t/how-to-simulate-heating-coil/2344 "2020-01-02T22:31:13Z")

</div>

Hello, After a few days of research, I feel quite confused by what tool is responsible for what problem. That’s why I decided to ask here for help in finding out the directions where should I go. I would just like to kn…

---

## [How to apply different textures to each face of a tetrahedron](https://discourse.vtk.org/t/how-to-apply-different-textures-to-each-face-of-a-tetrahedron/2333)

<div class="topic-metadata">

**Author:** [@Cheng1087](https://discourse.vtk.org/u/Cheng1087)\
**Replies:** 2\
**Last updated:** [December 30, 2019, 10:51am UTC](https://discourse.vtk.org/t/how-to-apply-different-textures-to-each-face-of-a-tetrahedron/2333 "2019-12-30T10:51:44Z")

</div>

Here is my code example.(only can use one actor!) #include \<vtkAutoInit.h\> VTK\_MODULE\_INIT(vtkRenderingOpenGL2) VTK\_MODULE\_INIT(vtkInteractionStyle) #include \<vtkPoints.h\> #include \<vtkPolygon.h\> #include \<vtkCellA…

---

## [How to set lookup table for surfaceplot?](https://discourse.vtk.org/t/how-to-set-lookup-table-for-surfaceplot/2357)

<div class="topic-metadata">

**Author:** [@Yue\_JIN](https://discourse.vtk.org/u/Yue_JIN)\
**Replies:** 0\
**Last updated:** [December 30, 2019, 2:01am UTC](https://discourse.vtk.org/t/how-to-set-lookup-table-for-surfaceplot/2357 "2019-12-30T02:01:41Z")

</div>

Hello, I’m new with vtk. Is it possible to set lookup table for surfaceplot? And use lookup table scalar range? In addition, I found that when all the value in the table of a surfaceplot are the same, nothing will be sh…

---

## [Construct a 2D surface based on points defining the outline of an arbitrary shape](https://discourse.vtk.org/t/construct-a-2d-surface-based-on-points-defining-the-outline-of-an-arbitrary-shape/2354)

<div class="topic-metadata">

**Author:** [@michael23](https://discourse.vtk.org/u/michael23)\
**Replies:** 1\
**Last updated:** [December 29, 2019, 12:20pm UTC](https://discourse.vtk.org/t/construct-a-2d-surface-based-on-points-defining-the-outline-of-an-arbitrary-shape/2354 "2019-12-29T12:20:54Z")

</div>

Hello, I have a set of points which define the outline of an arbitrary shape. The shape is closed and contains no holes. Now I want to create the corresponding surface in VTK. My current approach is to create a vtkPoly…

---

## [Updating UnstructredGrid after Adding Cell](https://discourse.vtk.org/t/updating-unstructredgrid-after-adding-cell/2345)

<div class="topic-metadata">

**Author:** [@ChristopherWaters](https://discourse.vtk.org/u/ChristopherWaters)\
**Replies:** 2\
**Last updated:** [December 29, 2019, 9:43am UTC](https://discourse.vtk.org/t/updating-unstructredgrid-after-adding-cell/2345 "2019-12-29T09:43:53Z")

</div>

Current System (bottom-up): points (vtkSmartPointer\< vtkPoints \>) topology(vtkSmartPointer\< vtkCellArray \>) unGrid(vtkSmartPointer\< vtkUnstructuredGrid \>) mapper(vtkSmartPointer\< vtkDataSetMapper \>) actor(vtkSmart…

---

## [How to project a 3D volume on a 2D plane ?](https://discourse.vtk.org/t/how-to-project-a-3d-volume-on-a-2d-plane/2350)

<div class="topic-metadata">

**Author:** [@Fedia](https://discourse.vtk.org/u/Fedia)\
**Replies:** 1\
**Last updated:** [December 27, 2019, 9:30pm UTC](https://discourse.vtk.org/t/how-to-project-a-3d-volume-on-a-2d-plane/2350 "2019-12-27T21:30:44Z")

</div>

Plz how to project a 3D volume on a 2D plane ?

---

## [vtkCutter](https://discourse.vtk.org/t/vtkcutter/2337)

<div class="topic-metadata">

**Author:** [@snehal](https://discourse.vtk.org/u/snehal)\
**Replies:** 4\
**Last updated:** [December 27, 2019, 1:48pm UTC](https://discourse.vtk.org/t/vtkcutter/2337 "2019-12-27T13:48:23Z")

</div>

Hello all, I am new in VTK please help me to resolve the following issue. I have volume data when i try to pass in vtkCutter function its give me the following error volume = vtk.vtkVolume() volume.SetMapper(volumeM…

---

## [vtkSTLWriter unknown error](https://discourse.vtk.org/t/vtkstlwriter-unknown-error/2334)

<div class="topic-metadata">

**Author:** [@Inna\_Daymand](https://discourse.vtk.org/u/Inna_Daymand)\
**Replies:** 4\
**Last updated:** [December 26, 2019, 11:48pm UTC](https://discourse.vtk.org/t/vtkstlwriter-unknown-error/2334 "2019-12-26T23:48:02Z")

</div>

this is file name c:\\Users\\Admin\\workspace\\TA\_PlacerOptimizer\\General\_folder\\Patient\_21007large\_TALPS\_2\_0\_InitNormAngles\_90\_90\_90\_ 90\\EF14\_Patient\_21007\_Fully\_segmented.stl this is my code in python self.output\_data.…

---

## [How to implement myself interactor in vtk pyqt?](https://discourse.vtk.org/t/how-to-implement-myself-interactor-in-vtk-pyqt/2331)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 0\
**Last updated:** [December 23, 2019, 3:16pm UTC](https://discourse.vtk.org/t/how-to-implement-myself-interactor-in-vtk-pyqt/2331 "2019-12-23T15:16:09Z")

</div>

I need to start my own project. I want to implement my own interactor, and my code is: import vtk, sys from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor from PyQt5.QtWidgets import \* class myI…

---

## [convert nifti file to vtk polydata file](https://discourse.vtk.org/t/convert-nifti-file-to-vtk-polydata-file/2325)

<div class="topic-metadata">

**Author:** [@nour](https://discourse.vtk.org/u/nour)\
**Replies:** 4\
**Last updated:** [December 22, 2019, 1:11pm UTC](https://discourse.vtk.org/t/convert-nifti-file-to-vtk-polydata-file/2325 "2019-12-22T13:11:50Z")

</div>

I used to convert nifti file to .vtk file but what I noticed that there are many versions. I need # vtk DataFile Version 3.0 but this code gives me # vtk DataFile Version 4.2 . import vtk import sys reader = vtk.vtkNI…

---

## [How to use multiple textures for an actor？](https://discourse.vtk.org/t/how-to-use-multiple-textures-for-an-actor/2295)

<div class="topic-metadata">

**Author:** [@Cheng1087](https://discourse.vtk.org/u/Cheng1087)\
**Replies:** 4\
**Last updated:** [December 21, 2019, 1:52pm UTC](https://discourse.vtk.org/t/how-to-use-multiple-textures-for-an-actor/2295 "2019-12-21T13:52:29Z")

</div>

I have a block with multiple materials, each material corresponds to a texture. How do i show it in an actor？ In vtk8.1.2，I cannot get the number of texture unit that hardware support without class vtkOpenGLHardwareSup…

---

## [VTK Medical3 example clipping planes are of the iso center of volume](https://discourse.vtk.org/t/vtk-medical3-example-clipping-planes-are-of-the-iso-center-of-volume/2320)

<div class="topic-metadata">

**Author:** [@Sohrab\_Azami](https://discourse.vtk.org/u/Sohrab_Azami)\
**Replies:** 0\
**Last updated:** [December 20, 2019, 9:56am UTC](https://discourse.vtk.org/t/vtk-medical3-example-clipping-planes-are-of-the-iso-center-of-volume/2320 "2019-12-20T09:56:34Z")

</div>

Hi, I modified the Medical3 example of VTK and replace vtkVolumeReader16 with vtkDICOMImageReader and I run the Medical3 project and I see the volume perfectly! My problem is that the three clipping blades in iso cente…

---

## [Medical example of vtk using DICOM format slices](https://discourse.vtk.org/t/medical-example-of-vtk-using-dicom-format-slices/2313)

<div class="topic-metadata">

**Author:** [@Sohrab\_Azami](https://discourse.vtk.org/u/Sohrab_Azami)\
**Replies:** 0\
**Last updated:** [December 19, 2019, 8:52am UTC](https://discourse.vtk.org/t/medical-example-of-vtk-using-dicom-format-slices/2313 "2019-12-19T08:52:45Z")

</div>

Hi, I am new to this forum! I have used VTK for couple of month. questions: I have build and run vtk example Medical1…Medical4. I used headsq/quarter slices but I don’t know the format of quarter slice files, can any…

---

## [How to display the delaunay triangulation line for marching cubes?](https://discourse.vtk.org/t/how-to-display-the-delaunay-triangulation-line-for-marching-cubes/2307)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 2\
**Last updated:** [December 19, 2019, 12:12am UTC](https://discourse.vtk.org/t/how-to-display-the-delaunay-triangulation-line-for-marching-cubes/2307 "2019-12-19T00:12:19Z")

</div>

The isosurface obtained by marching cubes is actually a vtkPolyData. And it consist of many lines. How can I display those line? I only need to display lines (the first picture) nor the rendering (the second picture). …

---

## [Trying to visualize CT/MR data stored in HDF5 format](https://discourse.vtk.org/t/trying-to-visualize-ct-mr-data-stored-in-hdf5-format/2305)

<div class="topic-metadata">

**Author:** [@rds15](https://discourse.vtk.org/u/rds15)\
**Replies:** 2\
**Last updated:** [December 18, 2019, 4:34pm UTC](https://discourse.vtk.org/t/trying-to-visualize-ct-mr-data-stored-in-hdf5-format/2305 "2019-12-18T16:34:46Z")

</div>

Hello, I have CT/MR data stored in HDF5 format. My intention is to read the dataset that is stored in the .hdf5 file and display it in my own VTK viewer. Apparently not allowed to upload attachments, so I will send the …

---

## [Navigation Cube](https://discourse.vtk.org/t/navigation-cube/2258)

<div class="topic-metadata">

**Author:** [@Yongun\_Lee](https://discourse.vtk.org/u/Yongun_Lee)\
**Replies:** 6\
**Last updated:** [December 18, 2019, 6:42am UTC](https://discourse.vtk.org/t/navigation-cube/2258 "2019-12-18T06:42:42Z")

</div>

Hello. I used the vtk example to load the DICOM image and see the MPR and RAYCAST. The patient head was intuitive in direction, but thought that other parts of the body should be guided because it can be confusing. I w…

---

## [example in vtk.org/wiki not work](https://discourse.vtk.org/t/example-in-vtk-org-wiki-not-work/2297)

<div class="topic-metadata">

**Author:** [@Inna\_Daymand](https://discourse.vtk.org/u/Inna_Daymand)\
**Replies:** 1\
**Last updated:** [December 17, 2019, 11:43pm UTC](https://discourse.vtk.org/t/example-in-vtk-org-wiki-not-work/2297 "2019-12-17T23:43:15Z")

</div>

Hello everyone, please, pay attention to publication https://vtk.org/Wiki/Example\_from\_and\_to\_python\_converters Example given here does not work. In general it is not possible to do wrapper from c++ to python using b…

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

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