# Latest

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

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

**Page:** 123

---

## [normals of the polydata are messed up after transform](https://discourse.vtk.org/t/normals-of-the-polydata-are-messed-up-after-transform/9067)

<div class="topic-metadata">

**Author:** [@Hanxin\_Hua](https://discourse.vtk.org/u/Hanxin_Hua)\
**Replies:** 18\
**Last updated:** [August 4, 2022, 2:40pm UTC](https://discourse.vtk.org/t/normals-of-the-polydata-are-messed-up-after-transform/9067 "2022-08-04T14:40:13Z")

</div>

vtkNew\<vtkTransform\> transform; transform-\>PostMultiply(); transform-\>Scale(1.0, vtkMath::Norm(axisY) / m\_Thickness, 1.0); transform-\>Concatenate(C); transform-\>Update(); vtkNew\<vtkTransformPolyDataFilter\> transformP…

---

## [Render a circleWidget on the image](https://discourse.vtk.org/t/render-a-circlewidget-on-the-image/9079)

<div class="topic-metadata">

**Author:** [@haoxl3](https://discourse.vtk.org/u/haoxl3)\
**Replies:** 0\
**Last updated:** [August 4, 2022, 8:57am UTC](https://discourse.vtk.org/t/render-a-circlewidget-on-the-image/9079 "2022-08-04T08:57:49Z")

</div>

I saved the coordinates of the circleWidget in advance, then when I opened it again, I got the coordinates from the server and rendered it on the image, now the circle is not drawn. render code is: const renderLabelDat…

---

## [vtkImprintFilter leaving holes and non-manifold edges](https://discourse.vtk.org/t/vtkimprintfilter-leaving-holes-and-non-manifold-edges/9073)

<div class="topic-metadata">

**Author:** [@Connor.Bowley](https://discourse.vtk.org/u/Connor.Bowley)\
**Replies:** 3\
**Last updated:** [August 3, 2022, 4:43pm UTC](https://discourse.vtk.org/t/vtkimprintfilter-leaving-holes-and-non-manifold-edges/9073 "2022-08-03T16:43:34Z")

</div>

I am trying to use vtkImprintFilter to imprint flat text on a box. Most of the time it works well, but occasionally it will leave holes and non-manifold in its output. This seems to happen most often when an edge of the …

---

## [VtkPolygon Inflate not working](https://discourse.vtk.org/t/vtkpolygon-inflate-not-working/9064)

<div class="topic-metadata">

**Author:** [@RAUMIK\_RANA](https://discourse.vtk.org/u/RAUMIK_RANA)\
**Replies:** 1\
**Last updated:** [August 3, 2022, 9:54am UTC](https://discourse.vtk.org/t/vtkpolygon-inflate-not-working/9064 "2022-08-03T09:54:01Z")

</div>

https://kitware.github.io/vtk-examples/site/Python/GeometricObjects/Polygon/ I tried to inflate vtkPolygon but not working. Is vtkPolygon support Inflate or not?

---

## [Import from library](https://discourse.vtk.org/t/import-from-library/1966)

<div class="topic-metadata">

**Author:** [@HugoC](https://discourse.vtk.org/u/HugoC)\
**Replies:** 10\
**Last updated:** [August 3, 2022, 7:43am UTC](https://discourse.vtk.org/t/import-from-library/1966 "2022-08-03T07:43:36Z")

</div>

Hello, I tried a little vtk.js and i was importing unpkg.com with a script tag. I want to have the library without taking in on the server but when i download it and try : import vtkActor from 'vtk.js/Sources/Renderin…

---

## [Depth peeling not working on vtk.js 25](https://discourse.vtk.org/t/depth-peeling-not-working-on-vtk-js-25/9050)

<div class="topic-metadata">

**Author:** [@abdelghani-amz](https://discourse.vtk.org/u/abdelghani-amz)\
**Replies:** 4\
**Last updated:** [August 2, 2022, 5:40pm UTC](https://discourse.vtk.org/t/depth-peeling-not-working-on-vtk-js-25/9050 "2022-08-02T17:40:11Z")

</div>

so ive been using vtk for a while now on python and c++ and when i want to render an actor who has both opaque and translucent surfaces, i create a lookup table with its respective RGBA values and turn on depth peeling t…

---

## [How can I set the RGBA color for points in polyData](https://discourse.vtk.org/t/how-can-i-set-the-rgba-color-for-points-in-polydata/9062)

<div class="topic-metadata">

**Author:** [@654545342](https://discourse.vtk.org/u/654545342)\
**Replies:** 1\
**Last updated:** [August 2, 2022, 3:30pm UTC](https://discourse.vtk.org/t/how-can-i-set-the-rgba-color-for-points-in-polydata/9062 "2022-08-02T15:30:14Z")

</div>

How can I set the RGBA color for points in polyData What is the range of RGBA values

---

## [I can‘t open a bmp image using vtkbmpreader](https://discourse.vtk.org/t/i-can-t-open-a-bmp-image-using-vtkbmpreader/9025)

<div class="topic-metadata">

**Author:** [@BOB0Young](https://discourse.vtk.org/u/BOB0Young)\
**Replies:** 5\
**Last updated:** [August 2, 2022, 1:42pm UTC](https://discourse.vtk.org/t/i-can-t-open-a-bmp-image-using-vtkbmpreader/9025 "2022-08-02T13:42:03Z")

</div>

vtkSmartPointerReader = vtkSmartPointer::New(); //Reader-\>SetAllow8BitBMP(16); Reader-\>SetDataScalarTypeToUnsignedChar(); Reader-\>SetFileDimensionality(3); Reader-\>SetFilePrefix(“/home/yanghantao/Documents/ruxian/”); …

---

## [Polyline artifacts](https://discourse.vtk.org/t/polyline-artifacts/9063)

<div class="topic-metadata">

**Author:** [@svetlana](https://discourse.vtk.org/u/svetlana)\
**Replies:** 0\
**Last updated:** [August 2, 2022, 9:13am UTC](https://discourse.vtk.org/t/polyline-artifacts/9063 "2022-08-02T09:13:46Z")

</div>

Polyline in the version 8.1.1 looks smoothed and in the version 9.2 with artifacts. I tried FXAA and MultiSample but it doesn’t work. The code is exactly as in create polyline vtk example . Any idea?

---

## [How to intersect polydata and a plane?](https://discourse.vtk.org/t/how-to-intersect-polydata-and-a-plane/9061)

<div class="topic-metadata">

**Author:** [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)\
**Replies:** 1\
**Last updated:** [August 2, 2022, 8:18am UTC](https://discourse.vtk.org/t/how-to-intersect-polydata-and-a-plane/9061 "2022-08-02T08:18:41Z")

</div>

I want to intersect polydata and a plane. I can find vtkIntersectionPolyDataFilter to intersect two polydata. Or I need to create a polydata from the plane?

---

## [ITK-WASM, VITE/REACT, VSCODE, OPEN VITE FOLDER, NPM INSTALL](https://discourse.vtk.org/t/itk-wasm-vite-react-vscode-open-vite-folder-npm-install/8631)

<div class="topic-metadata">

**Author:** [@Sohrab\_Azami](https://discourse.vtk.org/u/Sohrab_Azami)\
**Replies:** 6\
**Last updated:** [August 2, 2022, 7:53am UTC](https://discourse.vtk.org/t/itk-wasm-vite-react-vscode-open-vite-folder-npm-install/8631 "2022-08-02T07:53:41Z")

</div>

Hi @thewtex , I think this requires attention from matt maccormic. I used vscode and opened example vite inside Examples folder of itk-wasm repo. I did (npm install) inside terminal of the vscode and it installed all th…

---

## [The import VTI file does not show circleWidget](https://discourse.vtk.org/t/the-import-vti-file-does-not-show-circlewidget/9053)

<div class="topic-metadata">

**Author:** [@haoxl3](https://discourse.vtk.org/u/haoxl3)\
**Replies:** 4\
**Last updated:** [August 2, 2022, 2:39am UTC](https://discourse.vtk.org/t/the-import-vti-file-does-not-show-circlewidget/9053 "2022-08-02T02:39:46Z")

</div>

Using this demo, I drew a circleWidget on the image, then downloaded it and saved it locally. Then, when it is introduced again, the circleWidget drawn before disappears. How do I display the widgets drawn before？ saved…

---

## [Interpolating z-values from a Delaunay2D mesh](https://discourse.vtk.org/t/interpolating-z-values-from-a-delaunay2d-mesh/9047)

<div class="topic-metadata">

**Author:** [@llobera](https://discourse.vtk.org/u/llobera)\
**Replies:** 5\
**Last updated:** [August 2, 2022, 2:21am UTC](https://discourse.vtk.org/t/interpolating-z-values-from-a-delaunay2d-mesh/9047 "2022-08-02T02:21:14Z")

</div>

I used VtkDelaunay2D to generate a mesh (vtkPolyData?) from a set of points. I am now looking for a way to be able to interpolate z values (in my case these correspond to elevations) from a set of xs and ys. What would b…

---

## [Rendering a scene with cubes \> 5000 ?](https://discourse.vtk.org/t/rendering-a-scene-with-cubes-5000/8992)

<div class="topic-metadata">

**Author:** [@ujjwala](https://discourse.vtk.org/u/ujjwala)\
**Replies:** 5\
**Last updated:** [August 1, 2022, 10:39pm UTC](https://discourse.vtk.org/t/rendering-a-scene-with-cubes-5000/8992 "2022-08-01T22:39:55Z")

</div>

I’m new to VTK and I’m trying to render a scene with a bunch of stacked cubes. My initial approach was to add a cubesource with a corresponding actor and add to the renderer, Unfortunately this approach does not scale we…

---

## [How can I make vtkLineWidget work on vtkResliceCursorWidget ?](https://discourse.vtk.org/t/how-can-i-make-vtklinewidget-work-on-vtkreslicecursorwidget/7733)

<div class="topic-metadata">

**Author:** [@Javi-r](https://discourse.vtk.org/u/Javi-r)\
**Replies:** 5\
**Last updated:** [August 1, 2022, 10:43am UTC](https://discourse.vtk.org/t/how-can-i-make-vtklinewidget-work-on-vtkreslicecursorwidget/7733 "2022-08-01T10:43:12Z")

</div>

My code only works on the axial plane. I need it to work in all three planes. If you add the line in the axial plane it works. If you try to add the line in the sagittal or coronal plane you get this error: Uncaught R…

---

## [read the .vti file](https://discourse.vtk.org/t/read-the-vti-file/9043)

<div class="topic-metadata">

**Author:** [@haoxl3](https://discourse.vtk.org/u/haoxl3)\
**Replies:** 3\
**Last updated:** [August 1, 2022, 7:27am UTC](https://discourse.vtk.org/t/read-the-vti-file/9043 "2022-08-01T07:27:04Z")

</div>

I used this demo to import the downloaded headsq.vti file into Times 404 again via reader.seturl. my code: reader.setUrl(\`http://172.22.150.37:8000/img/headsq.vti\`, { loadData: true }).then(() =\> { const fi…

---

## [rendering problems when volume and surface source are added in the same scene](https://discourse.vtk.org/t/rendering-problems-when-volume-and-surface-source-are-added-in-the-same-scene/8849)

<div class="topic-metadata">

**Author:** [@gzt036](https://discourse.vtk.org/u/gzt036)\
**Replies:** 13\
**Last updated:** [July 31, 2022, 9:54pm UTC](https://discourse.vtk.org/t/rendering-problems-when-volume-and-surface-source-are-added-in-the-same-scene/8849 "2022-07-31T21:54:53Z")

</div>

The yellow part is from the volume source, the black axes actor are AxesActor set with transparent to 0.01, still, it completely blocks the volume part. Also you can see the white line within the black axes so the trans…

---

## [undulated image surface using elevation data](https://discourse.vtk.org/t/undulated-image-surface-using-elevation-data/9038)

<div class="topic-metadata">

**Author:** [@drpeterfranz](https://discourse.vtk.org/u/drpeterfranz)\
**Replies:** 2\
**Last updated:** [July 30, 2022, 5:34am UTC](https://discourse.vtk.org/t/undulated-image-surface-using-elevation-data/9038 "2022-07-30T05:34:09Z")

</div>

Hi there. I am trying to visualise a GeoTIFF image. I can read it using vtkGDALRasterReader; the output of that reader is a vtkImageData. The image contains the elevation of each pixel in a cell array data. I am not ve…

---

## [How do I save the widgets](https://discourse.vtk.org/t/how-do-i-save-the-widgets/9014)

<div class="topic-metadata">

**Author:** [@haoxl3](https://discourse.vtk.org/u/haoxl3)\
**Replies:** 3\
**Last updated:** [July 29, 2022, 9:52pm UTC](https://discourse.vtk.org/t/how-do-i-save-the-widgets/9014 "2022-07-29T21:52:53Z")

</div>

see the example PaintWidget, I want to save the information for the widget，I use scene.renderer = scene.fullScreenRenderer.getRenderer(); scene.renderer.getState() ,but there is no widget information. How do I get all…

---

## [Fill vtkCutter ?](https://discourse.vtk.org/t/fill-vtkcutter/9021)

<div class="topic-metadata">

**Author:** [@Javi-r](https://discourse.vtk.org/u/Javi-r)\
**Replies:** 1\
**Last updated:** [July 29, 2022, 9:51pm UTC](https://discourse.vtk.org/t/fill-vtkcutter/9021 "2022-07-29T21:51:00Z")

</div>

How can I fill vtkCutter with a colour ?

---

## [Mapper for severeal cubes](https://discourse.vtk.org/t/mapper-for-severeal-cubes/9045)

<div class="topic-metadata">

**Author:** [@xderes](https://discourse.vtk.org/u/xderes)\
**Replies:** 1\
**Last updated:** [July 29, 2022, 9:17pm UTC](https://discourse.vtk.org/t/mapper-for-severeal-cubes/9045 "2022-07-29T21:17:13Z")

</div>

Hi all, I’m currently get used to vtk.js and trying to build a custom mapper which is similar to the SphereMapper or StickMapper but works for cubes or any other vtk source object. Is there a simple way to tell the map…

---

## [Mesh internal surface smoothing behavior changed in vtkWindowedSincPolyDataFilter](https://discourse.vtk.org/t/mesh-internal-surface-smoothing-behavior-changed-in-vtkwindowedsincpolydatafilter/8446)

<div class="topic-metadata">

**Author:** [@lassoan](https://discourse.vtk.org/u/lassoan)\
**Replies:** 15\
**Last updated:** [July 29, 2022, 8:38pm UTC](https://discourse.vtk.org/t/mesh-internal-surface-smoothing-behavior-changed-in-vtkwindowedsincpolydatafilter/8446 "2022-07-29T20:38:53Z")

</div>

It seems that the rewrite of vtkWindowedSincPolyDataFilter (that amazingly improved its performance) also changed how internal surfaces are smoothed. Smoothing of internal surfaces are important because when we segment a…

---

## [Transform](https://discourse.vtk.org/t/transform/8980)

<div class="topic-metadata">

**Author:** [@lyz](https://discourse.vtk.org/u/lyz)\
**Replies:** 3\
**Last updated:** [July 29, 2022, 5:15am UTC](https://discourse.vtk.org/t/transform/8980 "2022-07-29T05:15:53Z")

</div>

I check the example.TransformPipeline And I found that the forearm rotate around the center of the scene. How to rotate the forearm around the connection point between arm and forearm

---

## [Write 16bit TiFF with vtk](https://discourse.vtk.org/t/write-16bit-tiff-with-vtk/9029)

<div class="topic-metadata">

**Author:** [@gregthom992](https://discourse.vtk.org/u/gregthom992)\
**Replies:** 3\
**Last updated:** [July 29, 2022, 3:43am UTC](https://discourse.vtk.org/t/write-16bit-tiff-with-vtk/9029 "2022-07-29T03:43:18Z")

</div>

HI there, I have a small question and require assistance. I am required to write a .tif file at the end of my image processing pipeline; how do I go about this with vtk ? Currently, I am calling: vtkTIFFWriter writer …

---

## [custom output extent and spacing in vtkImagePlaneWidget](https://discourse.vtk.org/t/custom-output-extent-and-spacing-in-vtkimageplanewidget/9039)

<div class="topic-metadata">

**Author:** [@gregthom992](https://discourse.vtk.org/u/gregthom992)\
**Replies:** 0\
**Last updated:** [July 29, 2022, 2:41am UTC](https://discourse.vtk.org/t/custom-output-extent-and-spacing-in-vtkimageplanewidget/9039 "2022-07-29T02:41:30Z")

</div>

hi, I am using vtkImagePlaneWidget because it has the window leveling, cursor and text display all bundled in. However, I have a question, is there a way to make the vtkImagePlaneWidget output a specific size and resolu…

---

## [Pass values throught InvokeEvent callback](https://discourse.vtk.org/t/pass-values-throught-invokeevent-callback/4152)

<div class="topic-metadata">

**Author:** [@Ennio\_Bolondi](https://discourse.vtk.org/u/Ennio_Bolondi)\
**Replies:** 14\
**Last updated:** [July 29, 2022, 12:48am UTC](https://discourse.vtk.org/t/pass-values-throught-invokeevent-callback/4152 "2022-07-29T00:48:38Z")

</div>

Hi, I’m exploring how the vtk server “event system” works. I would like to ask a question about the “InvokeEvent” operation (server side). Into the “protocols.py” there is the “mouseInteraction” method which has the fo…

---

## [How can I stack a series of bmp image into 3D view](https://discourse.vtk.org/t/how-can-i-stack-a-series-of-bmp-image-into-3d-view/9028)

<div class="topic-metadata">

**Author:** [@BOB0Young](https://discourse.vtk.org/u/BOB0Young)\
**Replies:** 3\
**Last updated:** [July 28, 2022, 7:18am UTC](https://discourse.vtk.org/t/how-can-i-stack-a-series-of-bmp-image-into-3d-view/9028 "2022-07-28T07:18:11Z")

</div>

I read a series of bmp image ,and then appending 2D (XY) images along the Z axis to form a 3D volume, but there is only the lastest picture.How can I get a 3D view of those series of image? void MainWindow::imageappend…

---

## [How to delete connected areas less than a certain threshold](https://discourse.vtk.org/t/how-to-delete-connected-areas-less-than-a-certain-threshold/9032)

<div class="topic-metadata">

**Author:** [@1215](https://discourse.vtk.org/u/1215)\
**Replies:** 0\
**Last updated:** [July 28, 2022, 3:21am UTC](https://discourse.vtk.org/t/how-to-delete-connected-areas-less-than-a-certain-threshold/9032 "2022-07-28T03:21:56Z")

</div>

Using setextractionmodetolargestregion() of vtkpolydataconnectivityfilter can get the largest connected area, but other smaller connected areas that you want to keep have also been deleted. I want to reserve connected do…

---

## [How to get the gray value of vtkImageSlice through the point moved by the mouse？](https://discourse.vtk.org/t/how-to-get-the-gray-value-of-vtkimageslice-through-the-point-moved-by-the-mouse/8835)

<div class="topic-metadata">

**Author:** [@zhangzhi93](https://discourse.vtk.org/u/zhangzhi93)\
**Replies:** 3\
**Last updated:** [July 27, 2022, 4:40pm UTC](https://discourse.vtk.org/t/how-to-get-the-gray-value-of-vtkimageslice-through-the-point-moved-by-the-mouse/8835 "2022-07-27T16:40:39Z")

</div>

How to get the gray value of vtkImageSlice through the point moved by the mouse

---

## [Best pipeline for large MultiBlockDataset](https://discourse.vtk.org/t/best-pipeline-for-large-multiblockdataset/8998)

<div class="topic-metadata">

**Author:** [@BotellaA](https://discourse.vtk.org/u/BotellaA)\
**Replies:** 2\
**Last updated:** [July 27, 2022, 2:44pm UTC](https://discourse.vtk.org/t/best-pipeline-for-large-multiblockdataset/8998 "2022-07-27T14:44:11Z")

</div>

Hello, I am starting to use a MultuBlockDataset. It can be composed of hundreds of point sets, lines, surfaces, and unstructured grids. I struggle to understand what pipeline I should use for this kind of data. Should I…

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

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