# Development

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

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

**Page:** 44

---

## [Better sqrt](https://discourse.vtk.org/t/better-sqrt/3460)

<div class="topic-metadata">

**Author:** [@Ron84](https://discourse.vtk.org/u/Ron84)\
**Replies:** 12\
**Last updated:** [June 4, 2020, 4:12pm UTC](https://discourse.vtk.org/t/better-sqrt/3460 "2020-06-04T16:12:09Z")

</div>

Is someone able to translate the sqrt14-function into asm of gcc? double inline \_\_declspec (naked) \_\_fastcall sqrt14(double n) { \_asm fld qword ptr \[esp+4\] \_asm fsqrt \_asm ret 8 } Reference: https://www.codeproject…

---

## [Filter documentation](https://discourse.vtk.org/t/filter-documentation/3457)

<div class="topic-metadata">

**Author:** [@SimonFuet](https://discourse.vtk.org/u/SimonFuet)\
**Replies:** 3\
**Last updated:** [June 4, 2020, 7:35am UTC](https://discourse.vtk.org/t/filter-documentation/3457 "2020-06-04T07:35:50Z")

</div>

Hi all, Is there an up-to-date documentation about VTK filters? i.e. a description of everything we must, should and can do when implementing a new filter… More precisely, the ProcessRequest method needs to be reimplem…

---

## [fill closed contours](https://discourse.vtk.org/t/fill-closed-contours/3343)

<div class="topic-metadata">

**Author:** [@Nina](https://discourse.vtk.org/u/Nina)\
**Replies:** 5\
**Last updated:** [May 21, 2020, 12:43am UTC](https://discourse.vtk.org/t/fill-closed-contours/3343 "2020-05-21T00:43:37Z")

</div>

Hi, I want assing a 255 value for pixels inside a contour and 0 for outside pixels. the contour is composed of a set of 3D points that have same z-value. are there a vtk filters that allow to do that? vtkPolygon::Pointi…

---

## [Smoothing Surface crashing](https://discourse.vtk.org/t/smoothing-surface-crashing/3384)

<div class="topic-metadata">

**Author:** [@ilandaniele](https://discourse.vtk.org/u/ilandaniele)\
**Replies:** 5\
**Last updated:** [May 26, 2020, 7:05pm UTC](https://discourse.vtk.org/t/smoothing-surface-crashing/3384 "2020-05-26T19:05:46Z")

</div>

Good afternoon. In my project i convert a vtkVolume by some given DICOM files. Then i convert my vtkVolume on to a Surface by using vtkMarchingCubes and 6 steps more. Code is the following (myVolume is a class that in…

---

## [VTK file with DataArray with 10 components or more will not be read](https://discourse.vtk.org/t/vtk-file-with-dataarray-with-10-components-or-more-will-not-be-read/3109)

<div class="topic-metadata">

**Author:** [@maierbn](https://discourse.vtk.org/u/maierbn)\
**Replies:** 4\
**Last updated:** [May 25, 2020, 8:18pm UTC](https://discourse.vtk.org/t/vtk-file-with-dataarray-with-10-components-or-more-will-not-be-read/3109 "2020-05-25T20:18:09Z")

</div>

Hi, I’m working with VTK files that contain fields with 57 components \[1\]. The DataArray has following form: \<DataArray NumberOfComponents="57" .. ComponentName0="wal\_environment/vS" ComponentName1="wal\_environment/v…

---

## [Unable to change color to edges in Meshes/SolidClip example](https://discourse.vtk.org/t/unable-to-change-color-to-edges-in-meshes-solidclip-example/3367)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.vtk.org/u/jhlegarreta)\
**Replies:** 1\
**Last updated:** [May 22, 2020, 7:21pm UTC](https://discourse.vtk.org/t/unable-to-change-color-to-edges-in-meshes-solidclip-example/3367 "2020-05-22T19:21:10Z")

</div>

Folks, I am wondering how to change the color for the edges computed by the clipping plane in the Meshes/SolidClip example. I went through the vtkFeatureEdges documentaton but did not succeed in changing the color even…

---

## [vtkExodusIIReader possible bug](https://discourse.vtk.org/t/vtkexodusiireader-possible-bug/3346)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Replies:** 5\
**Last updated:** [May 21, 2020, 6:44pm UTC](https://discourse.vtk.org/t/vtkexodusiireader-possible-bug/3346 "2020-05-21T18:44:16Z")

</div>

I have no experience with the ExodusII reader but the coarse mesh file in the attached zip fails in Windows 10 Visual Studio 16.5/16.6 (possibly earlier versions). I can read the file coarseGrid.e Ok in ParaView but it f…

---

## [How to not draw off image in ResliceCursorWidget?](https://discourse.vtk.org/t/how-to-not-draw-off-image-in-reslicecursorwidget/3361)

<div class="topic-metadata">

**Author:** [@Yongun\_Lee](https://discourse.vtk.org/u/Yongun_Lee)\
**Replies:** 0\
**Last updated:** [May 21, 2020, 9:28am UTC](https://discourse.vtk.org/t/how-to-not-draw-off-image-in-reslicecursorwidget/3361 "2020-05-21T09:28:51Z")

</div>

The Off Image area illuminated by the WWL setting is not good for viewing. There is no OffImage area in the input PixelData. I posted the same question last time, but I couldn’t solve it. Does anyone have any advi…

---

## [Python Seg Fault](https://discourse.vtk.org/t/python-seg-fault/3353)

<div class="topic-metadata">

**Author:** [@gatti](https://discourse.vtk.org/u/gatti)\
**Replies:** 3\
**Last updated:** [May 20, 2020, 5:32pm UTC](https://discourse.vtk.org/t/python-seg-fault/3353 "2020-05-20T17:32:48Z")

</div>

Hi, I’m messaging because I believe I came across a bug. I’ve found a hacky fix for it, but I don’t think my fix is the correct long-term solution. Im using vtk==8.2.0 installed from Conda. If you filter.GetOutput() fr…

---

## [How to serialize vtkImageData to a binary buffer](https://discourse.vtk.org/t/how-to-serialize-vtkimagedata-to-a-binary-buffer/1369)

<div class="topic-metadata">

**Author:** [@oregonduckman](https://discourse.vtk.org/u/oregonduckman)\
**Replies:** 1\
**Last updated:** [May 20, 2020, 9:36am UTC](https://discourse.vtk.org/t/how-to-serialize-vtkimagedata-to-a-binary-buffer/1369 "2020-05-20T09:36:13Z")

</div>

I am using the following code to serialize a vtkImageData object to text. Since to result is all text and quite large I am looking for a way to serialize the vtkImageData object to binary, any thoughts? pvtkImageData is…

---

## [VTK9.0.0 : manage nrrd with gzip compression ?](https://discourse.vtk.org/t/vtk9-0-0-manage-nrrd-with-gzip-compression/3252)

<div class="topic-metadata">

**Author:** [@TheRalph](https://discourse.vtk.org/u/TheRalph)\
**Replies:** 2\
**Last updated:** [May 16, 2020, 9:18am UTC](https://discourse.vtk.org/t/vtk9-0-0-manage-nrrd-with-gzip-compression/3252 "2020-05-16T09:18:48Z")

</div>

Hi, I need to open nrrd file using gzip compression. I saw that feature had been integrated in master with commit cb7027c7c53 on Mon Apr 6 2020 which is great. Unfortunately it is not integrated in v9.0.0, do you know …

---

## [deal vtk data (such as vtkimagedata) in a qthread, app.exe crushed.](https://discourse.vtk.org/t/deal-vtk-data-such-as-vtkimagedata-in-a-qthread-app-exe-crushed/3313)

<div class="topic-metadata">

**Author:** [@xiangyang](https://discourse.vtk.org/u/xiangyang)\
**Replies:** 0\
**Last updated:** [May 15, 2020, 8:40am UTC](https://discourse.vtk.org/t/deal-vtk-data-such-as-vtkimagedata-in-a-qthread-app-exe-crushed/3313 "2020-05-15T08:40:39Z")

</div>

such as, define a vtkimagedata in main thread, then , getscalarpoint int another qthread. when exit the qthread, exe crushed!

---

## [Faster method for GetPoint](https://discourse.vtk.org/t/faster-method-for-getpoint/3189)

<div class="topic-metadata">

**Author:** [@Ron84](https://discourse.vtk.org/u/Ron84)\
**Replies:** 19\
**Last updated:** [May 13, 2020, 6:34pm UTC](https://discourse.vtk.org/t/faster-method-for-getpoint/3189 "2020-05-13T18:34:45Z")

</div>

I figured out that doing this costs a lot time for many calls: double ptA\[3\], ptB\[3\]; pd-\>GetPoint(poly\[i\], ptA); pd-\>GetPoint(poly\[j\], ptB); Is there a more direct method without copying? This does not work, because…

---

## [Windows rendering issues](https://discourse.vtk.org/t/windows-rendering-issues/2542)

<div class="topic-metadata">

**Author:** [@Gilthalas](https://discourse.vtk.org/u/Gilthalas)\
**Replies:** 18\
**Last updated:** [May 12, 2020, 3:28pm UTC](https://discourse.vtk.org/t/windows-rendering-issues/2542 "2020-05-12T15:28:54Z")

</div>

OK, seeing some odd behaviors on Window using Java/VTK 6.3 (but also with 8.1.2 as well). In a vtkCaptionActor2D caption, the degree symbol (0x00B0) does NOT render, and it actually will cause the ENTIRE caption text t…

---

## [How to change volume'color ?](https://discourse.vtk.org/t/how-to-change-volumecolor/2061)

<div class="topic-metadata">

**Author:** [@Lee](https://discourse.vtk.org/u/Lee)\
**Replies:** 6\
**Last updated:** [May 11, 2020, 6:43am UTC](https://discourse.vtk.org/t/how-to-change-volumecolor/2061 "2020-05-11T06:43:29Z")

</div>

I use ParaView to import RAW file, Its results are as follows： I want to use VTK to simuate this result, Its results are as follows： and i want to change my result’s color ,how to change volume’color ?

---

## [Problem with ambient and specular color in vtkLight using vtk 8.2.0 (2)](https://discourse.vtk.org/t/problem-with-ambient-and-specular-color-in-vtklight-using-vtk-8-2-0-2/3204)

<div class="topic-metadata">

**Author:** [@santichialvo](https://discourse.vtk.org/u/santichialvo)\
**Replies:** 8\
**Last updated:** [May 8, 2020, 9:37pm UTC](https://discourse.vtk.org/t/problem-with-ambient-and-specular-color-in-vtklight-using-vtk-8-2-0-2/3204 "2020-05-08T21:37:33Z")

</div>

Hello, I’ve some problems related to the methods vtkLight::setSpecularColor and vtkLight::seAmbientColor. I explained the issue in detail in here. I’m not sure if this is a bug, if someone can explain to me what is happ…

---

## [Adding center of mass properties to vtkMassProperties](https://discourse.vtk.org/t/adding-center-of-mass-properties-to-vtkmassproperties/653)

<div class="topic-metadata">

**Author:** [@rdbrn](https://discourse.vtk.org/u/rdbrn)\
**Replies:** 1\
**Last updated:** [May 5, 2020, 2:28pm UTC](https://discourse.vtk.org/t/adding-center-of-mass-properties-to-vtkmassproperties/653 "2020-05-05T14:28:27Z")

</div>

I propose to add VolumeCenterX, VolumeCenterY and VolumeCenterZ to vtkMassProperties. These properties are easy to calculate as follows: for each triangle: create a tetrahedron for the three vertices of this triangle …

---

## [vtkNew and vtkSmartPointer](https://discourse.vtk.org/t/vtknew-and-vtksmartpointer/469)

<div class="topic-metadata">

**Author:** [@lorensen](https://discourse.vtk.org/u/lorensen)\
**Replies:** 34\
**Last updated:** [April 23, 2020, 8:52pm UTC](https://discourse.vtk.org/t/vtknew-and-vtksmartpointer/469 "2020-04-23T20:52:35Z")

</div>

Folks, We have had on and off discussions about which to use. Both can be used pretty much interchangeably. vtkNew is not friendly with some STL containers. But this is not a major issue for vtk since STL containers a…

---

## [VTK 9.0.0RC2: Does not work on Linux with TBB 2019 Update9 or newer](https://discourse.vtk.org/t/vtk-9-0-0rc2-does-not-work-on-linux-with-tbb-2019-update9-or-newer/3079)

<div class="topic-metadata">

**Author:** [@lukas](https://discourse.vtk.org/u/lukas)\
**Replies:** 4\
**Last updated:** [April 20, 2020, 6:57am UTC](https://discourse.vtk.org/t/vtk-9-0-0rc2-does-not-work-on-linux-with-tbb-2019-update9-or-newer/3079 "2020-04-20T06:57:47Z")

</div>

Hi all, I’ve been trying VTK9.0RC2 with TBB on Ubuntu 19.10 and there seems to be a problem when VTK is build with TBB\_2019\_Update9 or newer. When using this combination of VTK and TBB to build a VTK Example (e.g. Diag…

---

## [Trouble with New() function when using Emscripten](https://discourse.vtk.org/t/trouble-with-new-function-when-using-emscripten/3080)

<div class="topic-metadata">

**Author:** [@claretb](https://discourse.vtk.org/u/claretb)\
**Replies:** 2\
**Last updated:** [April 19, 2020, 7:57am UTC](https://discourse.vtk.org/t/trouble-with-new-function-when-using-emscripten/3080 "2020-04-19T07:57:45Z")

</div>

I’m trying to port my project to WebAssembly with Emscripten. I used this source of VTK and some external libraries. And when I compiling a test project, I get the following warnings: warning: undefined symbol: \_ZN15vtk…

---

## [Glitches when passing from QVTKWidget to QVTKOpenGLWidget](https://discourse.vtk.org/t/glitches-when-passing-from-qvtkwidget-to-qvtkopenglwidget/3068)

<div class="topic-metadata">

**Author:** [@embeddedmz](https://discourse.vtk.org/u/embeddedmz)\
**Replies:** 5\
**Last updated:** [April 17, 2020, 2:42pm UTC](https://discourse.vtk.org/t/glitches-when-passing-from-qvtkwidget-to-qvtkopenglwidget/3068 "2020-04-17T14:42:42Z")

</div>

Hi, There’s this project I’m using in one of my company’s product https://github.com/OpenGeoscience/vtkMap it’s a slippy map. In applications/weatherstations, there’s an example of a Qt application using that project. …

---

## [Problem with java bindings in VTK 9](https://discourse.vtk.org/t/problem-with-java-bindings-in-vtk-9/2883)

<div class="topic-metadata">

**Author:** [@Marcin\_Krotkiewski](https://discourse.vtk.org/u/Marcin_Krotkiewski)\
**Replies:** 61\
**Last updated:** [April 17, 2020, 12:39pm UTC](https://discourse.vtk.org/t/problem-with-java-bindings-in-vtk-9/2883 "2020-04-17T12:39:06Z")

</div>

Hi, I compiled the 9.0.0-rc1 with Java bindings. It seems that the bindings generator skips some functions, which were otherwise available in the VTK8.2 bindings. One particular example is vtkScalarBarRepresentation.jav…

---

## [Deformable registration](https://discourse.vtk.org/t/deformable-registration/3071)

<div class="topic-metadata">

**Author:** [@srbn.ghosh99](https://discourse.vtk.org/u/srbn.ghosh99)\
**Replies:** 3\
**Last updated:** [April 16, 2020, 8:25pm UTC](https://discourse.vtk.org/t/deformable-registration/3071 "2020-04-16T20:25:18Z")

</div>

Hi, I am trying to do a deformable registration after doing a landmark-based registration between a triangular simplex mesh and CT image. In the snapshot, after using a landmark-based registration I got the registere…

---

## [Python wrapper for vtkPIOReader?](https://discourse.vtk.org/t/python-wrapper-for-vtkpioreader/3069)

<div class="topic-metadata">

**Author:** [@terryturton](https://discourse.vtk.org/u/terryturton)\
**Replies:** 4\
**Last updated:** [April 16, 2020, 3:48pm UTC](https://discourse.vtk.org/t/python-wrapper-for-vtkpioreader/3069 "2020-04-16T15:48:21Z")

</div>

Is there a python wrapper for vtkPIOReader? I am making a pipeline with dmp files and there doesn’t appear to be a method to read in the PIO file. thanks, Terry

---

## [vtkHardwareSelector and multi-layer rendering](https://discourse.vtk.org/t/vtkhardwareselector-and-multi-layer-rendering/2996)

<div class="topic-metadata">

**Author:** [@mat127](https://discourse.vtk.org/u/mat127)\
**Replies:** 1\
**Last updated:** [April 16, 2020, 8:33am UTC](https://discourse.vtk.org/t/vtkhardwareselector-and-multi-layer-rendering/2996 "2020-04-16T08:33:41Z")

</div>

Hello, is vtkHardwareSelector capable to work correctly in multi-layered rendering setup? My setup is following: 2 layers layer 0 contains all actors layer 1 contains widget representations and some special actors use…

---

## [size\_t and vtkIdType (aka int, long or long long)](https://discourse.vtk.org/t/size-t-and-vtkidtype-aka-int-long-or-long-long/3062)

<div class="topic-metadata">

**Author:** [@Ron84](https://discourse.vtk.org/u/Ron84)\
**Replies:** 10\
**Last updated:** [April 15, 2020, 9:34pm UTC](https://discourse.vtk.org/t/size-t-and-vtkidtype-aka-int-long-or-long-long/3062 "2020-04-15T21:34:21Z")

</div>

What’s your opinion about the use of size\_t for arguments in VTK that are defined as vtkIdType? Look at this: // p is a vector std::size\_t i, num = p.size(); vtkIdList \*cell = vtkIdList::New(); cell-\>SetNumberOfIds(num…

---

## [Is it possible to create multi page with vtkGL2PSExporter ?](https://discourse.vtk.org/t/is-it-possible-to-create-multi-page-with-vtkgl2psexporter/3048)

<div class="topic-metadata">

**Author:** [@Romain](https://discourse.vtk.org/u/Romain)\
**Replies:** 3\
**Last updated:** [April 14, 2020, 8:29pm UTC](https://discourse.vtk.org/t/is-it-possible-to-create-multi-page-with-vtkgl2psexporter/3048 "2020-04-14T20:29:21Z")

</div>

Hi everyone, I’d like to create a PDF document with multiple pages representing different orientation of my scene. Currently I create on file per orientation with vtkGL2PSExporter and I’d like to create only one file wi…

---

## [Minimum CMake version](https://discourse.vtk.org/t/minimum-cmake-version/2867)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Replies:** 13\
**Last updated:** [April 10, 2020, 2:11am UTC](https://discourse.vtk.org/t/minimum-cmake-version/2867 "2020-04-10T02:11:30Z")

</div>

Hi, In order to support Intel MPI better, I’d like to bump the FindMPI in VTK to the version that is provided by CMake 3.17. However, some of this logic is only available in CMake 3.12 (namely the SHELL: syntax for link…

---

## [unstructured grid with approximated spheres as cells](https://discourse.vtk.org/t/unstructured-grid-with-approximated-spheres-as-cells/2974)

<div class="topic-metadata">

**Author:** [@cobo](https://discourse.vtk.org/u/cobo)\
**Replies:** 5\
**Last updated:** [April 8, 2020, 10:18am UTC](https://discourse.vtk.org/t/unstructured-grid-with-approximated-spheres-as-cells/2974 "2020-04-08T10:18:06Z")

</div>

Trying to generate an “unstructured grid” with some kind of sphere approximation as “cells” - and so far this is the best I could achieve: This is a “triquadratic hexahedron”, with all the reference points at the same…

---

## [How to extend the Java wrapper API?](https://discourse.vtk.org/t/how-to-extend-the-java-wrapper-api/2970)

<div class="topic-metadata">

**Author:** [@mat127](https://discourse.vtk.org/u/mat127)\
**Replies:** 7\
**Last updated:** [April 7, 2020, 5:08pm UTC](https://discourse.vtk.org/t/how-to-extend-the-java-wrapper-api/2970 "2020-04-07T17:08:03Z")

</div>

Hello, I have realized that VTK Java wrapper API is a subset of the full VTK API. How is the wrapper generated and how is the selection of what will be available in the Java wrapper done? Is it possible to add a partic…

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

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