# Development

**URL:** https://discourse.vtk.org/c/development/7.md?page=27

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

**Page:** 28

---

## [Using VTK in my C# .NET application for non-commercial purposes.](https://discourse.vtk.org/t/using-vtk-in-my-c-net-application-for-non-commercial-purposes/9076)

<div class="topic-metadata">

**Author:** [@gregthom992](https://discourse.vtk.org/u/gregthom992)\
**Replies:** 2\
**Last updated:** [August 9, 2022, 12:38am UTC](https://discourse.vtk.org/t/using-vtk-in-my-c-net-application-for-non-commercial-purposes/9076 "2022-08-09T00:38:38Z")

</div>

Hi all, How can I use the latest vtk in my .NET c# application without ActiViz .NET ? I gather ActiViz .NET is not open source anymore so what is the proper way to get VTK for my application? I am simply working in a…

---

## [How to get the section area?](https://discourse.vtk.org/t/how-to-get-the-section-area/9078)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.vtk.org/u/jumbojing)\
**Replies:** 2\
**Last updated:** [August 8, 2022, 12:16pm UTC](https://discourse.vtk.org/t/how-to-get-the-section-area/9078 "2022-08-08T12:16:30Z")

</div>

I want to get the section area of the Lumbar pedicle. I had got a the point cloud the section from numpy arrays, and then use :point\_down: code: def areaSect(points): "" verts = vtk.vtkPoints() p…

---

## [AlignTwoPolyDatas Example](https://discourse.vtk.org/t/aligntwopolydatas-example/1103)

<div class="topic-metadata">

**Author:** [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Replies:** 11\
**Last updated:** [August 8, 2022, 11:25am UTC](https://discourse.vtk.org/t/aligntwopolydatas-example/1103 "2022-08-08T11:25:07Z")

</div>

Folks, Recently, a user wanted to align two models from a longitudinal study. He did not have access to the original image data. If he had the images, he could have used 3DSlicer or Elastix. They both have state-of-the-…

---

## [QtQuick scenegraph is using an unsupported graphics API: 4.](https://discourse.vtk.org/t/qtquick-scenegraph-is-using-an-unsupported-graphics-api-4/9095)

<div class="topic-metadata">

**Author:** [@claude](https://discourse.vtk.org/u/claude)\
**Replies:** 2\
**Last updated:** [August 8, 2022, 3:17am UTC](https://discourse.vtk.org/t/qtquick-scenegraph-is-using-an-unsupported-graphics-api-4/9095 "2022-08-08T03:17:49Z")

</div>

Hi everyone, I’m using vtk-QtQuick component(QQuickVTKRenderItem,QQuickVTKRenderWindow)，and the following problem occurs when I try to build it: Version : QT6.2 , vtk9.2.0 rc2. What can i do to solve this problem? …

---

## [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 …

---

## [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?

---

## [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 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…

---

## [Compile error when use VTK static library in QT Creator](https://discourse.vtk.org/t/compile-error-when-use-vtk-static-library-in-qt-creator/1039)

<div class="topic-metadata">

**Author:** [@Edward](https://discourse.vtk.org/u/Edward)\
**Replies:** 8\
**Last updated:** [July 26, 2022, 1:41pm UTC](https://discourse.vtk.org/t/compile-error-when-use-vtk-static-library-in-qt-creator/1039 "2022-07-26T13:41:00Z")

</div>

Hi, I’m trying to use VTK static lib in QT Creator, but got so many compile error(\> 2000), if I compile the same program with VTK dynamic lib, no error and the program works well. I have already add all VTK libraries i…

---

## [Creating a parallel vtk structured grid](https://discourse.vtk.org/t/creating-a-parallel-vtk-structured-grid/9009)

<div class="topic-metadata">

**Author:** [@zetwal](https://discourse.vtk.org/u/zetwal)\
**Replies:** 0\
**Last updated:** [July 25, 2022, 2:16pm UTC](https://discourse.vtk.org/t/creating-a-parallel-vtk-structured-grid/9009 "2022-07-25T14:16:22Z")

</div>

Hello I’m trying to create a parallel structured grid but the extents for the pieces are wrong. This is how it looks like: \<?xml version="1.0"?\> \<VTKFile type="PStructuredGrid" version="0.1" byte\_order="LittleEndian" h…

---

## [Remove non-manifold edges from decimated polydata](https://discourse.vtk.org/t/remove-non-manifold-edges-from-decimated-polydata/9002)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)\
**Replies:** 1\
**Last updated:** [July 25, 2022, 12:30pm UTC](https://discourse.vtk.org/t/remove-non-manifold-edges-from-decimated-polydata/9002 "2022-07-25T12:30:16Z")

</div>

Hope this script is useful for someone… It’s done to be executed on Slicer but you can easily adapt it to pure vtk. guide\_dec = getNode('guide-dec') idFilter = vtk.vtkIdFilter() idFilter.SetInputData(guide\_dec.GetMesh…

---

## [Intersect for plane and polydata](https://discourse.vtk.org/t/intersect-for-plane-and-polydata/9006)

<div class="topic-metadata">

**Author:** [@LostRaccoon](https://discourse.vtk.org/u/LostRaccoon)\
**Replies:** 0\
**Last updated:** [July 25, 2022, 8:46am UTC](https://discourse.vtk.org/t/intersect-for-plane-and-polydata/9006 "2022-07-25T08:46:59Z")

</div>

I hope that the official can provide the intersection line of the plane and polydata , and the direct use vtkIntersectionPolyDataFilter efficiency is relatively low

---

## [What's the best way of CSharp custom vtk widget?](https://discourse.vtk.org/t/whats-the-best-way-of-csharp-custom-vtk-widget/8993)

<div class="topic-metadata">

**Author:** [@Endless](https://discourse.vtk.org/u/Endless)\
**Replies:** 0\
**Last updated:** [July 22, 2022, 1:20am UTC](https://discourse.vtk.org/t/whats-the-best-way-of-csharp-custom-vtk-widget/8993 "2022-07-22T01:20:04Z")

</div>

Such as the title. Our team use Kitware.VTK(ActiViz.NET) to build csharp vtk application. But custom widget/actor/representation is not easy to achieve.

---

## [How to export renderer output in (vtk python) and used that exported info only to rendered results on other vtk python.](https://discourse.vtk.org/t/how-to-export-renderer-output-in-vtk-python-and-used-that-exported-info-only-to-rendered-results-on-other-vtk-python/8970)

<div class="topic-metadata">

**Author:** [@khadija](https://discourse.vtk.org/u/khadija)\
**Replies:** 5\
**Last updated:** [July 19, 2022, 9:41am UTC](https://discourse.vtk.org/t/how-to-export-renderer-output-in-vtk-python-and-used-that-exported-info-only-to-rendered-results-on-other-vtk-python/8970 "2022-07-19T09:41:16Z")

</div>

I want the rendering result on one pc from vtk python and just display rendered 3d data on the other pc by using some exported files? is it possible to export vtk rendered files in python in a format that can be open on…

---

## [Improve possible vtkMath bottleneck](https://discourse.vtk.org/t/improve-possible-vtkmath-bottleneck/8913)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)\
**Replies:** 2\
**Last updated:** [July 18, 2022, 5:13pm UTC](https://discourse.vtk.org/t/improve-possible-vtkmath-bottleneck/8913 "2022-07-18T17:13:18Z")

</div>

Hi. While using Slicer with VerySleepy I noticed it spent a lot of time on vtkJacobiN. I did a quick search and there is a faster convergence algorithm called GaussSeidel. You can see more here: I implemented it, bui…

---

## [SetLabelModeToLabelIds get all "zero values"](https://discourse.vtk.org/t/setlabelmodetolabelids-get-all-zero-values/8968)

<div class="topic-metadata">

**Author:** [@YuNie](https://discourse.vtk.org/u/YuNie)\
**Replies:** 0\
**Last updated:** [July 18, 2022, 8:44am UTC](https://discourse.vtk.org/t/setlabelmodetolabelids-get-all-zero-values/8968 "2022-07-18T08:44:42Z")

</div>

I was trying to show the label contour id using vtkLabeledDataMapper. when i set the mapper label mode to label id using “SetLabelModeToLabelIds”. I got all ids labeled “zero”. How can I solve this？

---

## [Added features in vtkSelectPolyData](https://discourse.vtk.org/t/added-features-in-vtkselectpolydata/8958)

<div class="topic-metadata">

**Author:** [@patrick-laurin](https://discourse.vtk.org/u/patrick-laurin)\
**Replies:** 1\
**Last updated:** [July 15, 2022, 2:58pm UTC](https://discourse.vtk.org/t/added-features-in-vtkselectpolydata/8958 "2022-07-15T14:58:07Z")

</div>

Hi, I’ve made some changes in vtkSelectPolyData regarding multiple points: When generating selection scalars, there was no array name set, giving an output without the array in question. Issue: https://gitlab.kitware…

---

## [vtkQuadricDecimation error in vtk9.0](https://discourse.vtk.org/t/vtkquadricdecimation-error-in-vtk9-0/6068)

<div class="topic-metadata">

**Author:** [@doublechen](https://discourse.vtk.org/u/doublechen)\
**Replies:** 4\
**Last updated:** [July 15, 2022, 6:12am UTC](https://discourse.vtk.org/t/vtkquadricdecimation-error-in-vtk9-0/6068 "2022-07-15T06:12:53Z")

</div>

vtk new version QuadricDecimation maybe have a numerical problem? when processing large polygon files will print unable refactor linear system lasting 10 mins. The picture above is the final output result. i fond same …

---

## [vtk pick (select) not working when zoomed very far in](https://discourse.vtk.org/t/vtk-pick-select-not-working-when-zoomed-very-far-in/8939)

<div class="topic-metadata">

**Author:** [@bheld](https://discourse.vtk.org/u/bheld)\
**Replies:** 0\
**Last updated:** [July 12, 2022, 9:02pm UTC](https://discourse.vtk.org/t/vtk-pick-select-not-working-when-zoomed-very-far-in/8939 "2022-07-12T21:02:24Z")

</div>

We are using vtkHandleWidget and vtkPointHandleRepresentation3D together to support a dragable point in our VTK window. This works well except when zoomed way in. At some level of zooming, the widget can no longer be s…

---

## [Is there a bug in vtkAreaPicker.cxx](https://discourse.vtk.org/t/is-there-a-bug-in-vtkareapicker-cxx/8924)

<div class="topic-metadata">

**Author:** [@jialinwang](https://discourse.vtk.org/u/jialinwang)\
**Replies:** 0\
**Last updated:** [July 11, 2022, 9:17am UTC](https://discourse.vtk.org/t/is-there-a-bug-in-vtkareapicker-cxx/8924 "2022-07-11T09:17:52Z")

</div>

void vtkAreaPicker::DefineFrustum(double x0, double y0, double x1, double y1, vtkRenderer\* renderer) { this-\>X0 = (x0 \< x1) ? x0 : x1; this-\>Y0 = (y0 \< y1) ? y0 : y1; this-\>X1 = (x0 \> x1) ? x0 : x1; this-\>Y1 = (y0 \> …

---

## [VTK Dashboards are clean !](https://discourse.vtk.org/t/vtk-dashboards-are-clean/8902)

<div class="topic-metadata">

**Author:** [@mwestphal](https://discourse.vtk.org/u/mwestphal)\
**Replies:** 0\
**Last updated:** [July 7, 2022, 1:11pm UTC](https://discourse.vtk.org/t/vtk-dashboards-are-clean/8902 "2022-07-07T13:11:40Z")

</div>

Thanks to a huge effort from all VTK developpers, VTK dashboards (for merge requests) are officially cleaned up as of today ! Let’s keep it that way :slight\_smile: The CI process is now fully documented here, a mu…

---

## [I want to union 2D polygons.](https://discourse.vtk.org/t/i-want-to-union-2d-polygons/8912)

<div class="topic-metadata">

**Author:** [@ldk7972](https://discourse.vtk.org/u/ldk7972)\
**Replies:** 0\
**Last updated:** [July 9, 2022, 8:47am UTC](https://discourse.vtk.org/t/i-want-to-union-2d-polygons/8912 "2022-07-09T08:47:30Z")

</div>

I want to union 2D polygons. What should I do? first. I want to merge two circles. please. help me.

---

## [Read Raw files and create vtkimagedata](https://discourse.vtk.org/t/read-raw-files-and-create-vtkimagedata/8869)

<div class="topic-metadata">

**Author:** [@mdeepakcdac](https://discourse.vtk.org/u/mdeepakcdac)\
**Replies:** 0\
**Last updated:** [July 5, 2022, 12:26pm UTC](https://discourse.vtk.org/t/read-raw-files-and-create-vtkimagedata/8869 "2022-07-05T12:26:49Z")

</div>

How can i read raw data files from folder and convert it to the vtkimagedata format. I need to read the raw data files from the folder and do some filters on it and finally need to render it. its dimension 1024 x 1024 a…

---

## [How to realize this feature in VTK](https://discourse.vtk.org/t/how-to-realize-this-feature-in-vtk/8825)

<div class="topic-metadata">

**Author:** [@Ren](https://discourse.vtk.org/u/Ren)\
**Replies:** 8\
**Last updated:** [July 5, 2022, 9:22am UTC](https://discourse.vtk.org/t/how-to-realize-this-feature-in-vtk/8825 "2022-07-05T09:22:09Z")

</div>

The power is inside of the car, but it can be saw, I can sure it doesn’t use transparent method, how to do in VTK? \< \< Picture removed according to original author desire \> \>

---

## [Compilation error for StreamlinesWithlineWidget](https://discourse.vtk.org/t/compilation-error-for-streamlineswithlinewidget/8828)

<div class="topic-metadata">

**Author:** [@yvan](https://discourse.vtk.org/u/yvan)\
**Replies:** 1\
**Last updated:** [July 2, 2022, 3:45am UTC](https://discourse.vtk.org/t/compilation-error-for-streamlineswithlinewidget/8828 "2022-07-02T03:45:15Z")

</div>

when building StreamlinesWithlineWidget sample code with VisualStudio 2017 (Windows10, x64), I get lots of C2440 compilation errors. Ex: cannot convert from vtkNew to vtkPolyData\* : vtkNew seeds; GenerateStreamlines-\>p…

---

## [Transform seems to not be applied to input points after vtkBox.SetTransform(). Bug? (Code included)](https://discourse.vtk.org/t/transform-seems-to-not-be-applied-to-input-points-after-vtkbox-settransform-bug-code-included/8784)

<div class="topic-metadata">

**Author:** [@MJJ](https://discourse.vtk.org/u/MJJ)\
**Replies:** 2\
**Last updated:** [June 28, 2022, 5:25am UTC](https://discourse.vtk.org/t/transform-seems-to-not-be-applied-to-input-points-after-vtkbox-settransform-bug-code-included/8784 "2022-06-28T05:25:56Z")

</div>

I have a vtkBox with a transform set. However, the transform never seems to be applied to the input points. Here is the code so you can see for yourself: import vtk box\_origin = \[420, 69, 420.69\] T = vtk.vtkTransform…

---

## [Documentation about reading and understanding CI results](https://discourse.vtk.org/t/documentation-about-reading-and-understanding-ci-results/8736)

<div class="topic-metadata">

**Author:** [@mwestphal](https://discourse.vtk.org/u/mwestphal)\
**Replies:** 2\
**Last updated:** [June 24, 2022, 2:39pm UTC](https://discourse.vtk.org/t/documentation-about-reading-and-understanding-ci-results/8736 "2022-06-24T14:39:46Z")

</div>

A complete documentation about reading and understanding VTK GitLab CI and CDash results has just been merged in VTK. You may want to take a look ! https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/dev/git…

---

## [The corners of the rectangle are not good.](https://discourse.vtk.org/t/the-corners-of-the-rectangle-are-not-good/8779)

<div class="topic-metadata">

**Author:** [@ldk7972](https://discourse.vtk.org/u/ldk7972)\
**Replies:** 1\
**Last updated:** [June 22, 2022, 11:30pm UTC](https://discourse.vtk.org/t/the-corners-of-the-rectangle-are-not-good/8779 "2022-06-22T23:30:35Z")

</div>

m\_pvtkDicomImageReader-\>SetFileName(“D:\\XRay3.dcm”); m\_pvtkDicomImageReader-\>Update(); m\_pvtkImageViewer-\>SetInputConnection(m\_pvtkDicomImageReader-\>GetOutputPort()); CStatic\* pctrlPicture = (CStatic\*)GetDlgItem(ID…

---

## [vtkAttributeSmoothingFilter](https://discourse.vtk.org/t/vtkattributesmoothingfilter/8783)

<div class="topic-metadata">

**Author:** [@will.schroeder](https://discourse.vtk.org/u/will.schroeder)\
**Replies:** 0\
**Last updated:** [June 22, 2022, 1:27pm UTC](https://discourse.vtk.org/t/vtkattributesmoothingfilter/8783 "2022-06-22T13:27:16Z")

</div>

FYI- This might be of interest to some folks, and it could be a nice addition to ParaView: I just merged a new filter that smooths point attribute data. There are several VTK filters that smooth mesh geometry, but this …

---

## [Spline to clip a polydata](https://discourse.vtk.org/t/spline-to-clip-a-polydata/1542)

<div class="topic-metadata">

**Author:** [@bassfaye](https://discourse.vtk.org/u/bassfaye)\
**Replies:** 8\
**Last updated:** [March 8, 2022, 8:13pm UTC](https://discourse.vtk.org/t/spline-to-clip-a-polydata/1542 "2022-03-08T20:13:34Z")

</div>

Hello, I choose some points in a polydata. With these points, I want to create a spline (closed) on the surface of the polydata in order to clip it in two parts. How can I do to create that spline? I have seen vtkOrien…

[Previous page](https://discourse.vtk.org/c/development/7.md?page=26)

[Next page](https://discourse.vtk.org/c/development/7.md?page=28)
