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
1 answer

unable to use VTK in windows 10, crash everywhere

i have downloaded the vtk from source both the latest version 9.1.0 and the previous version 8.2.0, configured and generate a project file with no error, built the source in visual studio and it was a success also installed it. but when i run a…
curiousJorgeXX
  • 363
  • 1
  • 10
0
votes
1 answer

what is the role of Update( ) in VTK?

I m a new in vtk and i want to know what is the role of Update here , we can just use vtkNew sphereSource; and its will work vtkNew sphereSource; sphereSource->Update();
Free Code
  • 23
  • 5
0
votes
1 answer

How to use VTK_array in VTK pipeline (Python)?

I am new to vtk and am trying to do volume rendering with a DICOM file. When I try to read the DICOM file using VTK with the following code: import vtk reader =…
user42
  • 871
  • 1
  • 10
  • 28
0
votes
0 answers

cmake: how to link dll when there is d suffix for debug

I want to include a third package (VTK) in my project. The folder is: Thirdparty VTK bin Debug xxxd.dll ... Release xxx.dll ... include …
Qiang Zhang
  • 820
  • 8
  • 32
0
votes
1 answer

vtkStreamTracer not extracting data

I'm trying to extract streamlines from an unstructured grid by using the vtk python library: import vtk file_path = "my_file.vtk" reader = vtk.vtkUnstructuredGridReader() reader.SetFileName(file_path) reader.Update() streamer =…
Francesco
  • 169
  • 1
  • 1
  • 8
0
votes
1 answer

how can i show Gaussian cube file with vtk?

I have a file with .cube format. I want show it with vtk as such as this image. how can i show this file with C++ vtk?
0
votes
0 answers

Reading vtu file with Python

I want to make npy matrix from unstructured vtu data, and the following is the code for it. file_name = 'data/0_0000.vtu' reader = vtk.vtkXMLUnstructuredGridReader() reader.SetFileName(file_name) reader.Update() polydata =…
swanhwang
  • 31
  • 3
0
votes
0 answers

how to I access vtk library functions in visual studio c++ code

I have downloaded vtk and now I want to call it in my code in visual studio. How do I add the vtk library so I could call it easily.
0
votes
0 answers

Memory leak in PCL visualizer and QVTK widget

I m using Ubuntu 20.04 with Qt5.12 for developing a QT project which uses a QVTK widget to display a 3D PCL visualiser. I m facing memory leak issues after defining the visualiser and vtk widget relationship. The header file contents are as…
surajj4837
  • 49
  • 1
  • 10
0
votes
0 answers

Pyvista: find out which mesh was picked

I add some spheres to my Pyvista plot and try to make them pickable: for index, center in enumerate(centers): sphere = pv.Sphere(radius=radius, center=center) plotter.add_mesh(sphere, color=thisColor, pickable=True) …
Michael
  • 7,407
  • 8
  • 41
  • 84
0
votes
1 answer

Can I use vtkCellLocator to find intersected cells by line

I have mesh grid and there is a line passing through several cells. I want to get all the cells which are intersected by line. I have start and end points of line and I have mesh vertexes coordinates. What is the fastest way to compute this…
0
votes
1 answer

How to correctly use VTK ConstrainedDelaunay2D?

I've started from the VTK ConstrainedDelaunay2D example and added my own points: #include #include #include #include #include #include…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
0
votes
2 answers

How to convert world coordinate to view coordinate in VTK

In my program(python based), a point need to be converted from world coordinate([x,y,z]) to view coordinate([j,k,t],j and k are between -1 and 1,t is the depth) in VTK. I find the vtkCoordinate class with SetCoordinateSystemToView() method. But it…
0
votes
1 answer

Deleting Spheres from VTK Object

We have written a program as you can see in image: program_image. We added spheres on the object to get information about the place. Now the problem is, although we can place them with no issue, we could not remove them. We want to delete them. We…
slefsmteem
  • 13
  • 4
0
votes
1 answer

Calling a function in parent __init__ ,from a child class function

I want to have something like this. If OpenVTK(0) calls, program starts and if it calls OpenVTK(1) it resets(but only some of features). (elif vect[0]==1: part of the code below does not have these properties) class MainWindow(QMainWindow,…