# Latest

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

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

**Page:** 118

---

## [mocking in cxx surface rendering with cropping similar to a 3d slicer example](https://discourse.vtk.org/t/mocking-in-cxx-surface-rendering-with-cropping-similar-to-a-3d-slicer-example/9397)

<div class="topic-metadata">

**Author:** [@fab672000](https://discourse.vtk.org/u/fab672000)\
**Replies:** 0\
**Last updated:** [September 19, 2022, 11:20pm UTC](https://discourse.vtk.org/t/mocking-in-cxx-surface-rendering-with-cropping-similar-to-a-3d-slicer-example/9397 "2022-09-19T23:20:31Z")

</div>

Hi, I am new to vtk and started to learn from the examples and the textbooks since a couple of weeks, I would like to implement in my current c++ demo something similar to: See: https://discourse.slicer.org/t/hide-d…

---

## [Redirect vtkContextView to a chosen render window](https://discourse.vtk.org/t/redirect-vtkcontextview-to-a-chosen-render-window/9379)

<div class="topic-metadata">

**Author:** [@Martin3d](https://discourse.vtk.org/u/Martin3d)\
**Replies:** 4\
**Last updated:** [September 20, 2022, 5:05pm UTC](https://discourse.vtk.org/t/redirect-vtkcontextview-to-a-chosen-render-window/9379 "2022-09-20T17:05:56Z")

</div>

I want to use vtkChartXYZ in Java, as demonstrated by the SurfacePlot example which can be ported to java almost as-is. The example uses a vtkContextView which facilitate the renderer, render window and interactor initi…

---

## [VTK volume from std::vector and opencv images](https://discourse.vtk.org/t/vtk-volume-from-std-vector-and-opencv-images/9369)

<div class="topic-metadata">

**Author:** [@alex1610](https://discourse.vtk.org/u/alex1610)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 1:41pm UTC](https://discourse.vtk.org/t/vtk-volume-from-std-vector-and-opencv-images/9369 "2022-09-20T13:41:15Z")

</div>

I would like to create a volume from an std::vector of cv::Mat. I save all values in an std::vector in a linear way at first and then I import the pointer to data with imageimport. My problem is that my images are trunca…

---

## [How to label model according to cell data?](https://discourse.vtk.org/t/how-to-label-model-according-to-cell-data/9406)

<div class="topic-metadata">

**Author:** [@graysuit](https://discourse.vtk.org/u/graysuit)\
**Replies:** 0\
**Last updated:** [September 20, 2022, 11:46am UTC](https://discourse.vtk.org/t/how-to-label-model-according-to-cell-data/9406 "2022-09-20T11:46:01Z")

</div>

I have model (\*.vtu) containing several blocks like: I want to label values on each block like: How can I do it ? I can access values using: vtkActor actor = ...; var output = actor.GetMapper().GetInputAsDataSet(…

---

## [Draw 3D box](https://discourse.vtk.org/t/draw-3d-box/9405)

<div class="topic-metadata">

**Author:** [@qq\_X](https://discourse.vtk.org/u/qq_X)\
**Replies:** 0\
**Last updated:** [September 20, 2022, 11:23am UTC](https://discourse.vtk.org/t/draw-3d-box/9405 "2022-09-20T11:23:34Z")

</div>

I’m trying to reproduce the frame function from a software like this I used to use the vtkborderwidget, But it seems to be a 3D frame with different viewing angles, So I don’t konw how to do

---

## [vtu file coloring](https://discourse.vtk.org/t/vtu-file-coloring/9392)

<div class="topic-metadata">

**Author:** [@chengchengjing](https://discourse.vtk.org/u/chengchengjing)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 11:01am UTC](https://discourse.vtk.org/t/vtu-file-coloring/9392 "2022-09-20T11:01:41Z")

</div>

Opening a vtu file with paraview has the following variables, how can I use one of them to colorize through C++?

---

## [360 degree view](https://discourse.vtk.org/t/360-degree-view/8984)

<div class="topic-metadata">

**Author:** [@llobera](https://discourse.vtk.org/u/llobera)\
**Replies:** 7\
**Last updated:** [September 20, 2022, 8:43am UTC](https://discourse.vtk.org/t/360-degree-view/8984 "2022-09-20T08:43:47Z")

</div>

I am trying to obtain a 360 view of a terrain rendered in VTK. I have come across vtkPanoramicProjectionPass() but I have not found any examples. Can anyone point to some example, ideally, using python bindings?

---

## [coloring](https://discourse.vtk.org/t/coloring/9395)

<div class="topic-metadata">

**Author:** [@chengchengjing](https://discourse.vtk.org/u/chengchengjing)\
**Replies:** 1\
**Last updated:** [September 19, 2022, 2:34pm UTC](https://discourse.vtk.org/t/coloring/9395 "2022-09-19T14:34:43Z")

</div>

I open a vtu file with paraview and have the following attribute data, how can I use one of them to colorize like Spatial\_displacement？

---

## [is there a way to convert gmsh file(.msh) to .vtk](https://discourse.vtk.org/t/is-there-a-way-to-convert-gmsh-file-msh-to-vtk/9391)

<div class="topic-metadata">

**Author:** [@Zhao412](https://discourse.vtk.org/u/Zhao412)\
**Replies:** 1\
**Last updated:** [September 19, 2022, 3:07am UTC](https://discourse.vtk.org/t/is-there-a-way-to-convert-gmsh-file-msh-to-vtk/9391 "2022-09-19T03:07:59Z")

</div>

is there a way to convert gmsh file(.msh) to .vtk or could i use gmsh output a vtk file, like write("test.vtk"); Or I have to write a c++program to convert the msh file into a vtk file

---

## [Different colours for cell faces](https://discourse.vtk.org/t/different-colours-for-cell-faces/9363)

<div class="topic-metadata">

**Author:** [@drpeterfranz](https://discourse.vtk.org/u/drpeterfranz)\
**Replies:** 2\
**Last updated:** [September 18, 2022, 6:18pm UTC](https://discourse.vtk.org/t/different-colours-for-cell-faces/9363 "2022-09-18T18:18:04Z")

</div>

This may be a long shot and not possible… Is there an easy way to colour each face of 3D cells individually? Like attaching a dataset to an unstructured grid which contains a value per face of each cell?

---

## [How to build VTK-9.1.0 Static Library?](https://discourse.vtk.org/t/how-to-build-vtk-9-1-0-static-library/8339)

<div class="topic-metadata">

**Author:** [@Geeta](https://discourse.vtk.org/u/Geeta)\
**Replies:** 5\
**Last updated:** [September 17, 2022, 5:34pm UTC](https://discourse.vtk.org/t/how-to-build-vtk-9-1-0-static-library/8339 "2022-09-17T17:34:59Z")

</div>

I have built VTK-9.1.0 Static library by keeping BUILD\_SHARED\_LIBS = OFF. But when I use this library in my module\[vtkDlgApp\] I get Linking errors. Severity Code Description Project File Line Suppression State Error …

---

## [How can I solve this rendering error when marking the mouse pick triangle?](https://discourse.vtk.org/t/how-can-i-solve-this-rendering-error-when-marking-the-mouse-pick-triangle/9383)

<div class="topic-metadata">

**Author:** [@luck1](https://discourse.vtk.org/u/luck1)\
**Replies:** 0\
**Last updated:** [September 17, 2022, 3:41pm UTC](https://discourse.vtk.org/t/how-can-i-solve-this-rendering-error-when-marking-the-mouse-pick-triangle/9383 "2022-09-17T15:41:08Z")

</div>

VTK is new to me, When I try to mark the triangle picked by the mouse as red, Triangles do not render properly. Here is a video: Environment: OS version: Windows 10 21H2 Python version: 3.8 Vtk version: 9.1.0 Her…

---

## [Why does the vtkOBJReader add point automatically?](https://discourse.vtk.org/t/why-does-the-vtkobjreader-add-point-automatically/9367)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 3\
**Last updated:** [September 16, 2022, 3:00pm UTC](https://discourse.vtk.org/t/why-does-the-vtkobjreader-add-point-automatically/9367 "2022-09-16T15:00:18Z")

</div>

Hello,I have an cube in obj format with content like this: o Cube v 1.000000 1.000000 -1.000000 v 1.000000 -1.000000 -1.000000 v 1.000000 1.000000 1.000000 v 1.000000 -1.000000 1.000000 v -1.000000 1.000000 -1.000000 v …

---

## [Hide internal edges of quadratic cells](https://discourse.vtk.org/t/hide-internal-edges-of-quadratic-cells/2419)

<div class="topic-metadata">

**Author:** [@Flagada](https://discourse.vtk.org/u/Flagada)\
**Replies:** 11\
**Last updated:** [September 16, 2022, 1:06pm UTC](https://discourse.vtk.org/t/hide-internal-edges-of-quadratic-cells/2419 "2022-09-16T13:06:51Z")

</div>

Hi! In my application I am trying to add some quadratic cell (vtkQuadraticQuad and vtkQuadraticTriangle) in a vtkUnstructuredGrid. The problem is that, as in the following example (https://lorensen.github.io/VTKExamples…

---

## [vessel-contours.vtkjs](https://discourse.vtk.org/t/vessel-contours-vtkjs/9358)

<div class="topic-metadata">

**Author:** [@Sohrab\_Azami](https://discourse.vtk.org/u/Sohrab_Azami)\
**Replies:** 1\
**Last updated:** [September 15, 2022, 11:26pm UTC](https://discourse.vtk.org/t/vessel-contours-vtkjs/9358 "2022-09-15T23:26:30Z")

</div>

@Adrien\_Boucaud hi, i have question about vtkjs images. i want to use them in my multisliceimagemapper program. how to display this type of image in index.js file. is there a sample code how to show this format of ima…

---

## [Using vtkImageReslice to mimic a cut plane cutting through 3D Image data](https://discourse.vtk.org/t/using-vtkimagereslice-to-mimic-a-cut-plane-cutting-through-3d-image-data/9349)

<div class="topic-metadata">

**Author:** [@tchen87](https://discourse.vtk.org/u/tchen87)\
**Replies:** 1\
**Last updated:** [September 15, 2022, 1:24pm UTC](https://discourse.vtk.org/t/using-vtkimagereslice-to-mimic-a-cut-plane-cutting-through-3d-image-data/9349 "2022-09-15T13:24:29Z")

</div>

I am interested in having a way of visualizing any given oblique slice through a volumetric image data set. I have a working implementation that utilizes vtkImageSlice, with vtkImageResliceMapper’s SetSlicePlane method …

---

## [vtkConnectedPointsFilter not working in PyQt based application](https://discourse.vtk.org/t/vtkconnectedpointsfilter-not-working-in-pyqt-based-application/9355)

<div class="topic-metadata">

**Author:** [@gbene](https://discourse.vtk.org/u/gbene)\
**Replies:** 0\
**Last updated:** [September 15, 2022, 10:45am UTC](https://discourse.vtk.org/t/vtkconnectedpointsfilter-not-working-in-pyqt-based-application/9355 "2022-09-15T10:45:17Z")

</div>

Hi! I was experimentig with the vtkConnectedPointsFilter to implement point cloud segmentation methods for a PyQt based application and I encountered a problem. When running the filter on a simple test script the algor…

---

## [How to implement endoluminal rendering vtk?](https://discourse.vtk.org/t/how-to-implement-endoluminal-rendering-vtk/9354)

<div class="topic-metadata">

**Author:** [@Usha\_Diggi](https://discourse.vtk.org/u/Usha_Diggi)\
**Replies:** 0\
**Last updated:** [September 15, 2022, 10:23am UTC](https://discourse.vtk.org/t/how-to-implement-endoluminal-rendering-vtk/9354 "2022-09-15T10:23:10Z")

</div>

Working CT data, can any help me about endoluminal rendering, is vtk support this kind of implementation?

---

## [vtkConnectedPointsFilter does not support vtkPointSet](https://discourse.vtk.org/t/vtkconnectedpointsfilter-does-not-support-vtkpointset/9348)

<div class="topic-metadata">

**Author:** [@gbene](https://discourse.vtk.org/u/gbene)\
**Replies:** 2\
**Last updated:** [September 15, 2022, 10:13am UTC](https://discourse.vtk.org/t/vtkconnectedpointsfilter-does-not-support-vtkpointset/9348 "2022-09-15T10:13:30Z")

</div>

Hi! I was trying the newly concretized vtkPointSet class for dense pointcloud analysis and visualization. I wanted to calculate the connectivity of my point cloud using vtkConnectedPointsFilter() but it raises the follo…

---

## [Can VTK add multiple clipPlane to UnstructuredGrid dataset?](https://discourse.vtk.org/t/can-vtk-add-multiple-clipplane-to-unstructuredgrid-dataset/8950)

<div class="topic-metadata">

**Author:** [@Albers\_Steven](https://discourse.vtk.org/u/Albers_Steven)\
**Replies:** 2\
**Last updated:** [September 15, 2022, 2:55am UTC](https://discourse.vtk.org/t/can-vtk-add-multiple-clipplane-to-unstructuredgrid-dataset/8950 "2022-09-15T02:55:02Z")

</div>

Hi, I try to clip an unstructured grid data with the example code of ClipUnstructuredGridWithPlane2. I works. But the limit is that it can only add one clipPlane because you can only SetClipFunction once. So is there …

---

## [Error in save vtkParametricFunctionSource using vtkPolyDataWriter](https://discourse.vtk.org/t/error-in-save-vtkparametricfunctionsource-using-vtkpolydatawriter/9315)

<div class="topic-metadata">

**Author:** [@zhen\_tian](https://discourse.vtk.org/u/zhen_tian)\
**Replies:** 2\
**Last updated:** [September 15, 2022, 2:12am UTC](https://discourse.vtk.org/t/error-in-save-vtkparametricfunctionsource-using-vtkpolydatawriter/9315 "2022-09-15T02:12:09Z")

</div>

I am working on a project which need to save data into .vtk file using python. I got an error when save a vtkParametricFunctionSource. Here is a sample code. import vtk ellipsoid = vtk.vtkParametricEllipsoid() ellipsoid…

---

## [Problems interpolating from delaunay2d](https://discourse.vtk.org/t/problems-interpolating-from-delaunay2d/9294)

<div class="topic-metadata">

**Author:** [@llobera](https://discourse.vtk.org/u/llobera)\
**Replies:** 5\
**Last updated:** [September 15, 2022, 2:01am UTC](https://discourse.vtk.org/t/problems-interpolating-from-delaunay2d/9294 "2022-09-15T02:01:26Z")

</div>

I used vtkDelaunay2d to generate a terrain surface. I wanted to obtain the elevation at two locations following this example suggested from an earlier posting. The locations are coordinates in terrain units. I have writt…

---

## [Show UnstructuredGrid as isosurface?](https://discourse.vtk.org/t/show-unstructuredgrid-as-isosurface/9306)

<div class="topic-metadata">

**Author:** [@lasc95](https://discourse.vtk.org/u/lasc95)\
**Replies:** 4\
**Last updated:** [September 15, 2022, 1:48am UTC](https://discourse.vtk.org/t/show-unstructuredgrid-as-isosurface/9306 "2022-09-15T01:48:50Z")

</div>

Hi, I am new in VTK, and I have a vtk UnstructuredGridFile and I read it, but it show me with polygons and I need to deploy it as isosurface. This is my code I can’t upload an image (I am a new user here). I need help p…

---

## [implement with vue problem (ControlPanel,ref,controller)](https://discourse.vtk.org/t/implement-with-vue-problem-controlpanel-ref-controller/9344)

<div class="topic-metadata">

**Author:** [@mh0223](https://discourse.vtk.org/u/mh0223)\
**Replies:** 4\
**Last updated:** [September 15, 2022, 12:16am UTC](https://discourse.vtk.org/t/implement-with-vue-problem-controlpanel-ref-controller/9344 "2022-09-15T00:16:15Z")

</div>

Hi, I’m starting developing vtk.js application with vue. So, I practice vtk.js examples. But there are some problems. First, controlPanel doesn’t work. It just saying “undefined”. I used addController() for controlPa…

---

## [vtk-9 with QML - examples?](https://discourse.vtk.org/t/vtk-9-with-qml-examples/9347)

<div class="topic-metadata">

**Author:** [@Tomasso](https://discourse.vtk.org/u/Tomasso)\
**Replies:** 1\
**Last updated:** [September 14, 2022, 9:58pm UTC](https://discourse.vtk.org/t/vtk-9-with-qml-examples/9347 "2022-09-14T21:58:44Z")

</div>

I wrote an application that defines user controls with QML (Qt-5.14), and displays polygonal surface data with VTK-8.2. My software uses the approach described here, extending QQuickFrameBufferObject which runs in the ma…

---

## [GetCellEdgeNeighbors gives all 0s](https://discourse.vtk.org/t/getcelledgeneighbors-gives-all-0s/9346)

<div class="topic-metadata">

**Author:** [@AlexLuya](https://discourse.vtk.org/u/AlexLuya)\
**Replies:** 2\
**Last updated:** [September 14, 2022, 2:33pm UTC](https://discourse.vtk.org/t/getcelledgeneighbors-gives-all-0s/9346 "2022-09-14T14:33:19Z")

</div>

Hello,I have a cude ,and want to get the neighbors of each cell iterating edge like this: GetCellEdgeNeighbors( cellId , edgeStart , edgeEnd , xxx) In expectation,each edge should have one neighbor,but all got 0,and i…

---

## [Probleme with Cmake for VTK installation](https://discourse.vtk.org/t/probleme-with-cmake-for-vtk-installation/9331)

<div class="topic-metadata">

**Author:** [@Minigandi](https://discourse.vtk.org/u/Minigandi)\
**Replies:** 5\
**Last updated:** [September 13, 2022, 8:43pm UTC](https://discourse.vtk.org/t/probleme-with-cmake-for-vtk-installation/9331 "2022-09-13T20:43:44Z")

</div>

Hello, I’m trying to install VTK on my computer, and there is always this error during the configuration, and even if I create a bin folder where CMake shows the error. Building with Visual stuido does not install VTK. …

---

## [Error linking shader FRAGMENT varying vertexIDVSOutput does not match any VERTEX varying](https://discourse.vtk.org/t/error-linking-shader-fragment-varying-vertexidvsoutput-does-not-match-any-vertex-varying/9336)

<div class="topic-metadata">

**Author:** [@zaidb](https://discourse.vtk.org/u/zaidb)\
**Replies:** 5\
**Last updated:** [September 13, 2022, 11:58am UTC](https://discourse.vtk.org/t/error-linking-shader-fragment-varying-vertexidvsoutput-does-not-match-any-vertex-varying/9336 "2022-09-13T11:58:21Z")

</div>

Hello, My goal is to add a widget manager to my renderer. const widgetManager = vtkWidgetManager.newInstance(); widgetManager.setRenderer(this.renderer); Everything works well at first. However, as soon as a Polydata …

---

## [VtkCamera angular ranges ranges?](https://discourse.vtk.org/t/vtkcamera-angular-ranges-ranges/9322)

<div class="topic-metadata">

**Author:** [@llobera](https://discourse.vtk.org/u/llobera)\
**Replies:** 6\
**Last updated:** [September 13, 2022, 8:07am UTC](https://discourse.vtk.org/t/vtkcamera-angular-ranges-ranges/9322 "2022-09-13T08:07:58Z")

</div>

It appears that one can set either the vertical or horizontal visual angles of a camera. If I was to set either of these (say the horizontal visual angle range) how would I find what is the other visual range (in this c…

---

## [VTKCamera Elevation and Azimuth angle query](https://discourse.vtk.org/t/vtkcamera-elevation-and-azimuth-angle-query/6777)

<div class="topic-metadata">

**Author:** [@Soumya\_Dutta](https://discourse.vtk.org/u/Soumya_Dutta)\
**Replies:** 3\
**Last updated:** [September 13, 2022, 6:41am UTC](https://discourse.vtk.org/t/vtkcamera-elevation-and-azimuth-angle-query/6777 "2022-09-13T06:41:58Z")

</div>

Hello, I have a python VTK script that does some rendering using VTK. I want to query the elevation and azimuth angles of the current view. I am trying to find APIs to do that and could not find any. I see the Elevation…

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

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