Skip to main content

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.

1 vote
0 answers
32 views

Improving VTK Virtual Camera Setup for Accurate Mesh Visualization

I am working on a project where I need to visualize a 3D object mesh using a virtual camera in VTK, aiming to match the real-world camera setup. I use SolvePNP to obtain the rotation vector (rvec) and ...
CupidONO's user avatar
  • 182
0 votes
1 answer
14 views

Problem with xml format to output .vtr and combine to a .pvtr file

I am new to XML, and I tried to use pvtr format to combine several vtr files to output my data by using Paraview. The behavior of those formats is very strange in vtr. and when I open pvtr, it does ...
Mac cchiatooo's user avatar
1 vote
1 answer
49 views

Unable to compile a QT app utilising PCL Visualizer due to missing VTK/MPI C component

I'm trying to build a demo QT application using the Point Cloud Library (PCL) and its provided visualiser component (#include <pcl/visualization/pcl_visualizer.h>). I'm using Cmake for the build ...
Josh's user avatar
  • 2,769
0 votes
0 answers
39 views

Error encountered when calling VTK processing functions generated in C++ from C#

I am a beginner in C#. I wrote a method in C++ to process vtkPolyData, wrapped it into a DLL for use in C# environment. In C#, I'm using pointers to pass parameters, but encounter a error 'System....
Chunkai Bi's user avatar
1 vote
0 answers
41 views

PyQT5 VTK Mouse Button Event Mismatch

I am using PyQT5 and VTK for displaying information, and have been using observers to register mouse click events through the interactor style. For some reason, when multiple buttons are clicked, the ...
Adam's user avatar
  • 49
0 votes
0 answers
87 views

How do I rotate or translate an object at the mouse position in a vtk environment?

I would like to rotate or translate an object that look like a cylinder by pressing the left button of the mouse on it. to rotate, i would like to click on the tip and make it rotate around the other ...
ymmx's user avatar
  • 4,830
0 votes
0 answers
20 views

Pos processing in Paraview in an appropriate way with different meshes

I am writing a script to visualize the results of my calculations in ParaView. The script generates a .vtk file. I have two meshes: one defined by (Z0, Y0) and the other by (Z1, Y1). Additionally, I ...
Adoledin's user avatar
0 votes
0 answers
68 views

vcpkg "error: while detecting compiler information"

I can not install vtk:x64-linux because of this message: PS C:\Users\Juan\Desktop\VCPKG> ./vcpkg install vtk:x64-linux Computing installation plan... The following packages will be built and ...
juanlg's user avatar
  • 3
0 votes
0 answers
38 views

How to get the coordinates and/or the ID of a point on left mouse click in VTK PolyData in Python

I have a bunch of random points in a VTK renderer using QVTKRenderWindowInteractor. I can update the scene by generating more random points by clicking on the QT push button as seen in the screenshot. ...
OptimusPrime's user avatar
1 vote
1 answer
64 views

Different points after conversion from SITK image to VTK Image

I am trying to convert a SITK image with its corresponding spacing, origin, and direction metadata into a VTK Image, with a conversion to a Numpy array in between. However, when I try to grab a point ...
bkusuma's user avatar
  • 11
0 votes
1 answer
30 views

pyvista export does not preserve multiline texts

I am rendering a mesh with Pyvista (version 0.43.5) and I have a problem with multiline texts at export. In the interactive window and when I take a screenshot, a multiline title (or any other ...
PiWi's user avatar
  • 159
1 vote
0 answers
31 views

How do I convert an equirectangular image to a globe with labeled data

I have 2 data sources: A .png equirectangular image of a celestial body A .lyr file containing labels alongside coordinates for the celestial body How do I: Convert the png into a globe-like ...
Aizaz's user avatar
  • 79
0 votes
0 answers
8 views

Viewport not showing expected objects

I'm trying to create a simple display which has: 3 Spheres, 1 at center and 2 which move according to a list of positions I'm trying to simulate a camera attached to each moving object. In the scene I'...
MYousefi's user avatar
  • 1,008
0 votes
0 answers
19 views

How to set width of vtkAxisActor2D?

I am using vtkLegendScaleActor as following: scaleActor = vtkSmartPointer<vtkLegendScaleActor>::New(); scaleActor->RightAxisVisibilityOff(); scaleActor->LeftAxisVisibilityOff(); scaleActor-...
QThelp's user avatar
  • 31
0 votes
0 answers
19 views

Getting linking error for VTK library in Qt C++ after install and setup on my Windows 10

:-1: error: release/main.o:main.cpp:(.text+0xa): undefined reference to `__imp__ZN31vtkObjectFactoryRegistryCleanupD1Ev' :-1: error: release/main.o:main.cpp:(.text+0x1a): undefined reference to `...
user1805931's user avatar

15 30 50 per page
1
2 3 4 5
161