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.

0 votes
1 answer
7 views

Order of multiple VTK Plane Widgets

I am working on a VTK project where I am to have several plane widgets. If several plane widgets pass mouse hit test at the time, the interaction starts with the one that was added to the screen the ...
-1 votes
0 answers
9 views

vtkBorderWidget Zooming

I want to control the mouse wheel to zoom the vtkBorderWidget with the labeled image to play the role of image annotation. What should I do? I found the vtkBorderRepresentation class in the document, ...
  • 1
-1 votes
0 answers
15 views

The view is not updated

When I use both PCL and QVTKOpenGLNativeWidget Three-party library. When I change the color of the point cloud, the point cloud is not updated, and I need to click the mouse to update it My code: ...
  • 1
0 votes
0 answers
12 views

Python crashing when checking intersection between meshes with vedo

I'm having a really weird behaviour when using vedo's intersectWith() function to check intersection between meshes. I'm checking intersections between thousands of simple planar meshes (basically ...
  • 1,307
0 votes
0 answers
31 views

3D Rascasting volume does not shown with Qt +vtk9.1.0

I am trying to use Qt5.14.2 and vtk9.1.0 to show a 3D constructed model from my own data(CT), but the widget does not show up. If it is used to show a sphere model from vtk resources, it works. And I ...
1 vote
0 answers
38 views

Want to display customWidget in Qlistview , but its not rendering correctly QT c++

I'm trying to display all dicom images found in a directory in a Qlistwidget . I am able to add the dicom to list but the customwidget is not rendering . I am new to qt so pls help me The code that ...
1 vote
0 answers
17 views

How can I solve VTK rendering error when marking the mouse pick triangle?

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: The Red Triangle do not render completely My Environment: OS version: ...
0 votes
0 answers
25 views

Python Tkinter integration with pyvista

I'm working on a python 3.10 in VS Code environment. I want to visualize 3D vtk in Tkinter Canvas through pyvista module, but it seems Tkinter itself doesn't support the function. I've already read ...
  • 1
0 votes
0 answers
17 views

Using python to solve vtk dcm file annotation

I want to make a ct labeling software,for target detection,But I don't know how to realize the function of drawing rectangle. The read image has three perspectives. After labeling, each perspective ...
  • 1
0 votes
0 answers
28 views

Is there a VTK filter that can generate a constant scalar field?

I try to generate a constant scalar field, with 3 unsigned char components (colors), using a specific value. I need to put this field generation in a VTK pipeline. I cannot create a vtkPolyData from ...
  • 53
0 votes
0 answers
14 views

python vtk: vtkCellLocator IntersectWithLine Overloads Not Implemented

I have an unstructured grid that I need to intersect with a line to find both the points and cells. The VTK documentation for vtkCellLocator has an overloaded version of IntersectWithLine that will do ...
  • 37
0 votes
0 answers
12 views

Supress vedo warning message when meshes don't intersect

I'm using vedo, a vtk wrapper in python to get the intersection points between a lot of pairs of meshes using intersectWith(). Now, when 2 meshes don't intersect, i get the following message: 2022-09-...
  • 1,307
0 votes
0 answers
20 views

ModuleNotFoundError: No module named 'tvtk.custom.light

I'm trying to run simple python code. import qutip b = qutip.Bloch() b3d = qutip.Bloch3d() b.make_sphere() but have Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to ...
0 votes
1 answer
43 views

How to get external faces from a vtk file?

I have a cube made of hexaedrons and I want to get all the external faces (of the hexaedrons, not the "big" cube) but I'm not able to do it. I think the best way is to iterate over all faces ...
0 votes
0 answers
19 views

How Can I Plot a vtk file IsoSurface

I have this vtk and in Paraview, I can see the surface without problem (this vtk was generated by Bert and I want to reply the image in Python. Can you help me pls? This is the info of my vtk file: # ...
  • 1

15 30 50 per page
1
2 3 4 5
154