Questions tagged [vtk]

The Visualization Toolkit (VTK) is an open-source, freely available software system for 3D computer graphics, image processing and visualization. VTK consists of a C++ class library and several interpreted interface layers including Tcl/Tk, Java, and Python.

VTK supports a wide variety of visualization algorithms including: scalar, vector, tensor, texture, and volumetric methods; and advanced modeling techniques such as: implicit modeling, polygon reduction, mesh smoothing, cutting, contouring, and Delaunay triangulation. VTK has an extensive information visualization framework, has a suite of 3D interaction widgets, supports parallel processing, and integrates with various databases on GUI toolkits such as Qt and Tk. VTK is cross-platform and runs on Linux, Windows, Mac and Unix platforms. Kitware, whose team created and continues to extend the toolkit, offers professional support and consulting services for VTK.

2408 questions
0
votes
0 answers

VTK's example not running on Android

I compiled vtk-9.1 library, and I got 58 .a static lib. then imported lib into AndroidStudio , config CMake and make it working in my project.also,I copyed code from official android example,so far so good! but when the official Android…
Bub
  • 304
  • 2
  • 6
0
votes
2 answers

Add displacement data to mesh points

Suppose I have a mesh with Tet4 elements. The mesh has a total of 1695 nodes and 7726 elements. Now I can use pyvista to create the undeformed mesh like this: points = Node_Data[:,1:4] cells = EL_Data[:, 1:5] cells= np.insert(cells, 0, 4, axis =…
ryty
  • 5
  • 1
0
votes
1 answer

python vtk: how to import QVTKOpenGLNativeWidget

In c++, QVTKOpenGLNativeWidget can be included. For python vtk, I also want to import QVTKOpenGLNativeWidget, is it possible? How can I import QVTKOpenGLNativeWidget?
Qiang Zhang
  • 820
  • 8
  • 32
0
votes
1 answer

How to get voxel coordinates(as in ITK snap ) from vtkimage viewer from mouse click

I am trying to use ITK’s region growing algorithm for medical image segmentation. So to put the seedpoint i need exact voxel coordinates of the mouseclick position in my vtkimageviewer. So how can I get those voxel coordinates(as in ITK snap tool)…
0
votes
1 answer

Need Help porting project to latest vtk version from 5.8 version

I am working on a project which includes following code. This code was developed in vtk5.8 and now I am trying to make it work in vtk9.1. The code is compiling but it is not rendering anything. Can Anyone look at the code and let me know any…
0
votes
1 answer

Question about the VTK XML StructuredGrid data file format

I am trying to output my numerical simulation data in vtk format. My grid is structured and I need to use the VTK's XML format. My greatest confusion is about the WholeExtent and the Piece Extent attributes. E.g., the VTK pdf manual…
Terry
  • 11
  • 2
0
votes
1 answer

convert VTK array to numpy array

I have a VTKArray [ 9841.628 7471.281 5349.856 3497.214 1919.413 609.9934 -439.6396 -1233.646 -1770.145 -2040.984 -2075.757 -1984.518 -1808.935 -1577.721 -1312.206 -1028.827 -740.5976 -458.0241 …
0
votes
0 answers

Is there a wmv writer in vtk?

I am recording a video using vtkAVIWriter which writes .avi file, Is there a way to generate .wmv file using other writer, I have searched but did not find any suitable writer for wmv format. here is code to generate .avi file private void…
0
votes
0 answers

vtk example from vtk book does not work with 9.1

In the VTK book at page 63 there is an example which I pasted below. #include #include #include #include #include #include #include…
Tibi
  • 439
  • 7
  • 15
0
votes
0 answers

How I can make sure that VTK is installed correctly?

I am trying to install mayavi package on my windows, but it still gives me this error: ModuleNotFoundError: No module named 'vtk' I think I have installed vtk successfully but this error makes me doubt. How can I make sure that VTK is installed and…
0
votes
0 answers

QVTKOpenGLNativeWidget fails in debug mode

My C++ program in Visual call QVTKOpenGLNativeWidget and works fine in Release mode. However, when I change to Debug mode it fails to build which seems yo be related to Qt5Core. Note that Qt5Core.dll exist in my Qt/bin. I also build VTK library in…
Adam
  • 1
  • 2
0
votes
1 answer

Intercept "Q" and company in KeyPress

I am trying to find a way to intercept all keys, but apparently all defaults commands are still there, functioning properly. I've started with the cone example, and tried both vtkCallbackCommand and SetInteractorStyle, as suggested in the…
senseiwa
  • 2,369
  • 3
  • 24
  • 47
0
votes
1 answer

How to display a vtk or a mesh in Dash using a button or a dropdown?

I want to display the vtk file inside the geometry representation dash_vtk.View after I click a button. Is there any way to do that? This is my code: import os import dash import dash_bootstrap_components as dbc from dash import html from dash…
0
votes
1 answer

How to volume render 3D numpy array using VTK (MarchingCubes) in Python?

I have a 3D numpy array and I am trying to volume render it using VTK. However, I get a completely different volume rendering when I visualise it. I suspect it has something to do with my conversion of numpy array to the VTK image format but I can't…
user42
  • 871
  • 1
  • 10
  • 28
0
votes
1 answer

Mouse control is lost after using vtk interactor

I'm trying to visualize a vtk unstructuredgrid mesh. In order to get the coordinate of a point of my mesh I use the vtk interactor. I'm able to get the point coordinate by selecting the point using OnRightButtonDown() "overrid" . However, I loose…
Adam
  • 1
  • 2