# Latest

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

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

**Page:** 195

---

## [Check polydata is inside another polydata](https://discourse.vtk.org/t/check-polydata-is-inside-another-polydata/4494)

<div class="topic-metadata">

**Author:** [@11112](https://discourse.vtk.org/u/11112)\
**Replies:** 1\
**Last updated:** [November 4, 2020, 7:46pm UTC](https://discourse.vtk.org/t/check-polydata-is-inside-another-polydata/4494 "2020-11-04T19:46:28Z")

</div>

I read 2 polydata, P1( a segment of human vertebrae, there is a space in center, just like a wire ring, and it is close surface) contain P2(a nail), means P2 is inside P1. And I want to move the one inside P2, after mov…

---

## [Modification of array dimension using dataset\_adapter](https://discourse.vtk.org/t/modification-of-array-dimension-using-dataset-adapter/4567)

<div class="topic-metadata">

**Author:** [@ali.baba](https://discourse.vtk.org/u/ali.baba)\
**Replies:** 0\
**Last updated:** [November 4, 2020, 6:58pm UTC](https://discourse.vtk.org/t/modification-of-array-dimension-using-dataset-adapter/4567 "2020-11-04T18:58:28Z")

</div>

Hi everyone, While using the dataset\_adapter enabling numpy-like access to vtk dataset I have come across an unfortunate behavior. Here is the sequence : u\_grid\_vtk = vtk.vtkUnstructuredGrid() u\_grid = dsa.WrapDataObje…

---

## [Is there an alternative of SetLabelColor in volumeProperty in vtk versions under 9.0](https://discourse.vtk.org/t/is-there-an-alternative-of-setlabelcolor-in-volumeproperty-in-vtk-versions-under-9-0/4564)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.vtk.org/u/zandarina)\
**Replies:** 0\
**Last updated:** [November 4, 2020, 5:12pm UTC](https://discourse.vtk.org/t/is-there-an-alternative-of-setlabelcolor-in-volumeproperty-in-vtk-versions-under-9-0/4564 "2020-11-04T17:12:02Z")

</div>

Hello, I wonder if there is any alternative to SetLabelColor in volumeProperty in older vtk ersions to define the properties in the labels with SetMaskTypeToLabelMap and SetLabelScalarOpacity of a volume. in vtk 9.0 i t…

---

## [Non-shrinking (Taubin-) smoothing for lines?](https://discourse.vtk.org/t/non-shrinking-taubin-smoothing-for-lines/4561)

<div class="topic-metadata">

**Author:** [@normanius](https://discourse.vtk.org/u/normanius)\
**Replies:** 2\
**Last updated:** [November 4, 2020, 3:04am UTC](https://discourse.vtk.org/t/non-shrinking-taubin-smoothing-for-lines/4561 "2020-11-04T03:04:32Z")

</div>

I’m using vtkWindowedSincPolyDataFilter to smooth surfaces without shrinkage. I wonder if I can use the same filter to smooth curves without shrinkage too. The doc of the aforementioned filter states that it should be p…

---

## [Content behind window is visible](https://discourse.vtk.org/t/content-behind-window-is-visible/4532)

<div class="topic-metadata">

**Author:** [@Ariel](https://discourse.vtk.org/u/Ariel)\
**Replies:** 6\
**Last updated:** [November 4, 2020, 1:13pm UTC](https://discourse.vtk.org/t/content-behind-window-is-visible/4532 "2020-11-04T13:13:30Z")

</div>

Hi community, I have a problem where the content behind VTK window is visible (showed in the attachments). I have two examples where this happened: I copied the first example of the VTK examples (\[https://lorensen.gi…

---

## [set/get FieldData with numpy\_interface.dataset\_adapter](https://discourse.vtk.org/t/set-get-fielddata-with-numpy-interface-dataset-adapter/4550)

<div class="topic-metadata">

**Author:** [@bistek](https://discourse.vtk.org/u/bistek)\
**Replies:** 7\
**Last updated:** [November 4, 2020, 12:10pm UTC](https://discourse.vtk.org/t/set-get-fielddata-with-numpy-interface-dataset-adapter/4550 "2020-11-04T12:10:42Z")

</div>

Hello, I am doing experiments in Python, trying to set and get FieldData on e.g. a PolyData, UnstructuredGrid, etc., with numpy\_interface.dataset\_adapter. I am particularity interested in string FieldData, used to store …

---

## [vtkStripper does not join contiguous segments](https://discourse.vtk.org/t/vtkstripper-does-not-join-contiguous-segments/4552)

<div class="topic-metadata">

**Author:** [@jaswantp](https://discourse.vtk.org/u/jaswantp)\
**Replies:** 1\
**Last updated:** [November 4, 2020, 11:17am UTC](https://discourse.vtk.org/t/vtkstripper-does-not-join-contiguous-segments/4552 "2020-11-04T11:17:18Z")

</div>

Not to confuse with this (This is not an issue of duplicate points.) vtkStripper does not join contiguous segments when more than 2 polylines are chained. Most of the polylines can be joined, but they’re not. Reality: …

---

## [Using vtk.js as an ES6 dependency](https://discourse.vtk.org/t/using-vtk-js-as-an-es6-dependency/4524)

<div class="topic-metadata">

**Author:** [@Francesc](https://discourse.vtk.org/u/Francesc)\
**Replies:** 4\
**Last updated:** [November 4, 2020, 6:20am UTC](https://discourse.vtk.org/t/using-vtk-js-as-an-es6-dependency/4524 "2020-11-04T06:20:02Z")

</div>

Hello, I can’t get this tutorial to work: What I want to achieve is use vtk.js from an Angular app. Let me see if my understanding is correct: We need to webpack vtk.js to make it work, right? This is different fr…

---

## [Generate STL file](https://discourse.vtk.org/t/generate-stl-file/4443)

<div class="topic-metadata">

**Author:** [@flaviu2](https://discourse.vtk.org/u/flaviu2)\
**Replies:** 13\
**Last updated:** [November 3, 2020, 8:07pm UTC](https://discourse.vtk.org/t/generate-stl-file/4443 "2020-11-03T20:07:50Z")

</div>

I am trying to convert simple jpg files, with some simple items (black and white) into a STL files. I have tried: vtkSmartPointer\<vtkJPEGReader\> reader = vtkSmartPointer\<vtkJPEGReader\>::New(); reader-\>SetFileName(sFil…

---

## [PolyData connectivity filter with mode to specified regions only shows the first region selected](https://discourse.vtk.org/t/polydata-connectivity-filter-with-mode-to-specified-regions-only-shows-the-first-region-selected/4458)

<div class="topic-metadata">

**Author:** [@zandarina](https://discourse.vtk.org/u/zandarina)\
**Replies:** 5\
**Last updated:** [November 3, 2020, 4:42pm UTC](https://discourse.vtk.org/t/polydata-connectivity-filter-with-mode-to-specified-regions-only-shows-the-first-region-selected/4458 "2020-11-03T16:42:49Z")

</div>

Hello, I have a question about vtkPolyDataConnectivityFilter with SetExtractionModeToSpecifiedRegions . It does it well if I only get one region with label 0 or 1. But if I already specified one, the other returns both …

---

## [surface reconstruction in javascript](https://discourse.vtk.org/t/surface-reconstruction-in-javascript/4434)

<div class="topic-metadata">

**Author:** [@SArbabi](https://discourse.vtk.org/u/SArbabi)\
**Replies:** 23\
**Last updated:** [November 3, 2020, 4:04pm UTC](https://discourse.vtk.org/t/surface-reconstruction-in-javascript/4434 "2020-11-03T16:04:57Z")

</div>

Hi, I’m visualizing a point cloud in browser to user, along with a set of controllers that by interacting with them, point cloud gets updated and visualized again in real time. Now I want to visualize the surface inste…

---

## [Binary VTP PolyData File to ASCII](https://discourse.vtk.org/t/binary-vtp-polydata-file-to-ascii/4557)

<div class="topic-metadata">

**Author:** [@bdumphart](https://discourse.vtk.org/u/bdumphart)\
**Replies:** 0\
**Last updated:** [November 3, 2020, 1:06pm UTC](https://discourse.vtk.org/t/binary-vtp-polydata-file-to-ascii/4557 "2020-11-03T13:06:45Z")

</div>

Hi All! I have a question about the .vtp file format and how i can decode the binary base64 encoded data into a readable ascii/float32 format. I have already done this step with the Python vtk library (that works fine) …

---

## [Crop rotated ImageData to minimum axis aligned bounding box](https://discourse.vtk.org/t/crop-rotated-imagedata-to-minimum-axis-aligned-bounding-box/3018)

<div class="topic-metadata">

**Author:** [@rjs44](https://discourse.vtk.org/u/rjs44)\
**Replies:** 1\
**Last updated:** [November 3, 2020, 3:38am UTC](https://discourse.vtk.org/t/crop-rotated-imagedata-to-minimum-axis-aligned-bounding-box/3018 "2020-11-03T03:38:57Z")

</div>

I have an ImageData containing an object which I have transformed (rotated) using ImageReslicer. In order for the object to still be fully visible after the rotation I have set the SetAutoCropOutput of ImageReslicer to T…

---

## [vtk 9.0 build error](https://discourse.vtk.org/t/vtk-9-0-build-error/4534)

<div class="topic-metadata">

**Author:** [@Jone7](https://discourse.vtk.org/u/Jone7)\
**Replies:** 8\
**Last updated:** [November 3, 2020, 12:27am UTC](https://discourse.vtk.org/t/vtk-9-0-build-error/4534 "2020-11-03T00:27:14Z")

</div>

I tried to compile VTK 9.0 on VS2017 and combine QT for visualization, but I built many times, only to find that there was no QVTKWidgetPlugin.dll. I used CMake3.18.2 and QT 5.12.3.

---

## [How to use server rendering in activiz](https://discourse.vtk.org/t/how-to-use-server-rendering-in-activiz/4547)

<div class="topic-metadata">

**Author:** [@nober](https://discourse.vtk.org/u/nober)\
**Replies:** 0\
**Last updated:** [November 2, 2020, 6:42am UTC](https://discourse.vtk.org/t/how-to-use-server-rendering-in-activiz/4547 "2020-11-02T06:42:21Z")

</div>

Does it support vtkweb or paraview ? What to do if support ? Do I need to implement the data exchange protocol myself?

---

## [problem about the extents of output image in vtkResliceImageViewer when crosshair moving](https://discourse.vtk.org/t/problem-about-the-extents-of-output-image-in-vtkresliceimageviewer-when-crosshair-moving/4540)

<div class="topic-metadata">

**Author:** [@yuhuimoon](https://discourse.vtk.org/u/yuhuimoon)\
**Replies:** 0\
**Last updated:** [November 1, 2020, 3:09pm UTC](https://discourse.vtk.org/t/problem-about-the-extents-of-output-image-in-vtkresliceimageviewer-when-crosshair-moving/4540 "2020-11-01T15:09:20Z")

</div>

I have realized the 2D viewers with 2D vtkResliceImageViewer and a 3D MPR viewer with vtkImagePlaneWidget in my demo. Now the MPR plane can update its cursor position with the 2D viewer crosshair moving. When 2D cursor m…

---

## [Rendering PointHandleRepresentation2D with cursor type cause crash!](https://discourse.vtk.org/t/rendering-pointhandlerepresentation2d-with-cursor-type-cause-crash/4538)

<div class="topic-metadata">

**Author:** [@learn\_forever](https://discourse.vtk.org/u/learn_forever)\
**Replies:** 1\
**Last updated:** [November 1, 2020, 10:05pm UTC](https://discourse.vtk.org/t/rendering-pointhandlerepresentation2d-with-cursor-type-cause-crash/4538 "2020-11-01T22:05:30Z")

</div>

Just run the following codes, you’ll get a nullptr issue. If the PointHandleRepresentation2D doesn’t have an input cursor type, which means , just comment this line code : handleRep-\>SetCursorShape(cursor2D-\>GetOutput())…

---

## [vtkActor SetUserMatrix difference/bug(?) since VTK9](https://discourse.vtk.org/t/vtkactor-setusermatrix-difference-bug-since-vtk9/4499)

<div class="topic-metadata">

**Author:** [@Sophonet](https://discourse.vtk.org/u/Sophonet)\
**Replies:** 2\
**Last updated:** [November 1, 2020, 4:09pm UTC](https://discourse.vtk.org/t/vtkactor-setusermatrix-difference-bug-since-vtk9/4499 "2020-11-01T16:09:30Z")

</div>

Hi VTK team, starting with VTK9, there is an issue/a difference with respect to SetUserMatrix of vtkActor. Earlier (e.g. VTK 8.1.2), the matrix was correctly applied, but now this does not seem to be the case. Has there…

---

## [How to properly clip and cut multiple actors](https://discourse.vtk.org/t/how-to-properly-clip-and-cut-multiple-actors/4504)

<div class="topic-metadata">

**Author:** [@Marti.R](https://discourse.vtk.org/u/Marti.R)\
**Replies:** 10\
**Last updated:** [October 30, 2020, 8:25pm UTC](https://discourse.vtk.org/t/how-to-properly-clip-and-cut-multiple-actors/4504 "2020-10-30T20:25:12Z")

</div>

Hello everyone, I am new to vtk and have a question regarding the proper process to clip and cut multiple actors. In case this matters: I am doing this in Python. Currently I have a set of vtkActors that are stored in …

---

## [\[vtkjs\] Allow pan camera with mouse](https://discourse.vtk.org/t/vtkjs-allow-pan-camera-with-mouse/4528)

<div class="topic-metadata">

**Author:** [@nicoco](https://discourse.vtk.org/u/nicoco)\
**Replies:** 1\
**Last updated:** [October 30, 2020, 7:57pm UTC](https://discourse.vtk.org/t/vtkjs-allow-pan-camera-with-mouse/4528 "2020-10-30T19:57:31Z")

</div>

Is there a simple way to enable to pan camera with a mouse right (or wheel) click? I am using vtkFullScreenRenderWindow I realize this is probably the second very basic question I ask here but I could not find the sol…

---

## [OpenGL errors rendering transparency on mesa](https://discourse.vtk.org/t/opengl-errors-rendering-transparency-on-mesa/4523)

<div class="topic-metadata">

**Author:** [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)\
**Replies:** 4\
**Last updated:** [October 30, 2020, 3:58pm UTC](https://discourse.vtk.org/t/opengl-errors-rendering-transparency-on-mesa/4523 "2020-10-30T15:58:02Z")

</div>

Hi, I’ve posted a question 2 weeks ago in the Support category but did not get a response that got me much further, so I’m trying on Development. I am trying to render transparency with VTK 9.0.1 on Mesa 18.3.4 (also obs…

---

## [transparent objects not rendered with vtk9 and mesa 18.3.4 & 20.1.8](https://discourse.vtk.org/t/transparent-objects-not-rendered-with-vtk9-and-mesa-18-3-4-20-1-8/4417)

<div class="topic-metadata">

**Author:** [@andreasbuykx](https://discourse.vtk.org/u/andreasbuykx)\
**Replies:** 4\
**Last updated:** [October 30, 2020, 2:31pm UTC](https://discourse.vtk.org/t/transparent-objects-not-rendered-with-vtk9-and-mesa-18-3-4-20-1-8/4417 "2020-10-30T14:31:36Z")

</div>

I am trying to get VTK 9.0.1 to show transparent objects on our CentOS-7 with mesa but the transparent objects are not rendered at all apparently due to texture errors. The attached script shows a red cube and a green s…

---

## [How to show vtkPolyData in vtkImageViewer2?](https://discourse.vtk.org/t/how-to-show-vtkpolydata-in-vtkimageviewer2/4527)

<div class="topic-metadata">

**Author:** [@wulicheng](https://discourse.vtk.org/u/wulicheng)\
**Replies:** 1\
**Last updated:** [October 30, 2020, 12:16pm UTC](https://discourse.vtk.org/t/how-to-show-vtkpolydata-in-vtkimageviewer2/4527 "2020-10-30T12:16:12Z")

</div>

I have read a stl file and cut it, it can show the cut slice of cutter. But when I use this in vtkImageViewer2, the reslicer can not show? Can anyone show me a suggestion!!! \`void main() { vtkRenderer \*pRender1 = vtk…

---

## [\[vtkjs\] Get download progress with vtkXMLPolyDataReader.setUrl?](https://discourse.vtk.org/t/vtkjs-get-download-progress-with-vtkxmlpolydatareader-seturl/4518)

<div class="topic-metadata">

**Author:** [@nicoco](https://discourse.vtk.org/u/nicoco)\
**Replies:** 2\
**Last updated:** [October 30, 2020, 7:26am UTC](https://discourse.vtk.org/t/vtkjs-get-download-progress-with-vtkxmlpolydatareader-seturl/4518 "2020-10-30T07:26:19Z")

</div>

Is there any way to get the download progress, ideally as a percentage, when using vtkXMLPolyDataReader.setUrl? Since the dataset my app downloads is relatively large, I would like to display this information to the user…

---

## [Can I pick a point from a cloudPoint?](https://discourse.vtk.org/t/can-i-pick-a-point-from-a-cloudpoint/4526)

<div class="topic-metadata">

**Author:** [@LiZhenzhuBlog](https://discourse.vtk.org/u/LiZhenzhuBlog)\
**Replies:** 0\
**Last updated:** [October 30, 2020, 1:38am UTC](https://discourse.vtk.org/t/can-i-pick-a-point-from-a-cloudpoint/4526 "2020-10-30T01:38:11Z")

</div>

I have a problem with this https://discourse.vtk.org/t/point-picking-in-vtk-file/2171. I picked the point with the PointPicker and CellPicker with python，but get a wrong postion each time.

---

## [vtkmodules.qt.QVTKRenderWindowInteractor problems](https://discourse.vtk.org/t/vtkmodules-qt-qvtkrenderwindowinteractor-problems/4521)

<div class="topic-metadata">

**Author:** [@crux](https://discourse.vtk.org/u/crux)\
**Replies:** 9\
**Last updated:** [October 29, 2020, 7:20pm UTC](https://discourse.vtk.org/t/vtkmodules-qt-qvtkrenderwindowinteractor-problems/4521 "2020-10-29T19:20:25Z")

</div>

Hello, I have problems using the QVTKRenderWindowInteractor within Python. At first the setup: OS: Windows10 Python: 3.7.9 PyQt: 5.15.1 VTK: 9.0.1 (I built it with ‘python -m pip install vtk’) I had problems with …

---

## [Render a specific array from a VTI file](https://discourse.vtk.org/t/render-a-specific-array-from-a-vti-file/4514)

<div class="topic-metadata">

**Author:** [@Soumya\_Dutta](https://discourse.vtk.org/u/Soumya_Dutta)\
**Replies:** 1\
**Last updated:** [October 29, 2020, 3:27pm UTC](https://discourse.vtk.org/t/render-a-specific-array-from-a-vti-file/4514 "2020-10-29T15:27:00Z")

</div>

Hi all, I am trying to do volume rendering on a specific array from a vti data. The vti data can have multiple arrays. This is similar to select an array from the drop down list to do volume rendering. I am not sure how…

---

## [VTK decimator pro dosent recognise sub meshes in obj file](https://discourse.vtk.org/t/vtk-decimator-pro-dosent-recognise-sub-meshes-in-obj-file/4501)

<div class="topic-metadata">

**Author:** [@Rahul07](https://discourse.vtk.org/u/Rahul07)\
**Replies:** 1\
**Last updated:** [October 29, 2020, 1:52pm UTC](https://discourse.vtk.org/t/vtk-decimator-pro-dosent-recognise-sub-meshes-in-obj-file/4501 "2020-10-29T13:52:50Z")

</div>

Hi, I have an obj file with contains g tags, when I import the obj file decimate it and export it, it contains only one single mesh (it neglects g tags).

---

## [OpenGL Errors using ActiViz for Unity](https://discourse.vtk.org/t/opengl-errors-using-activiz-for-unity/4503)

<div class="topic-metadata">

**Author:** [@drdavid](https://discourse.vtk.org/u/drdavid)\
**Replies:** 1\
**Last updated:** [October 29, 2020, 10:03am UTC](https://discourse.vtk.org/t/opengl-errors-using-activiz-for-unity/4503 "2020-10-29T10:03:29Z")

</div>

Hi all. I’ve a fair bit of experience using Activiz 7.1.1 and separately with Unity3D and now looking at using the Unity3D plugin. I’ve downloaded the Medical Viewer sample package and also have a trial of the full plugi…

---

## [Backward compatibility](https://discourse.vtk.org/t/backward-compatibility/4512)

<div class="topic-metadata">

**Author:** [@Frank\_Gao](https://discourse.vtk.org/u/Frank_Gao)\
**Replies:** 10\
**Last updated:** [October 29, 2020, 12:44am UTC](https://discourse.vtk.org/t/backward-compatibility/4512 "2020-10-29T00:44:05Z")

</div>

Hello VTk experts, I have been using VTK V5 for years, wondering if the latest version is backward compatible to V5.2. Any suggestions for upgrade? Your reply is highly appreciated. Thanks, Frank

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

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