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.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
22 views

How to order the points of a line that has been cut?

I have drawn a curve that starts from point 2 and ends at the same point. [1] Then I cut it with two planes and using the vtkClipPolyData. Now I expect that when I get the cut curve points using the ...
Jaafar Nasrabadi's user avatar
0 votes
0 answers
8 views

Python VTK - Picked points not accurate

I'm trying to build a software for drawing freeform shapes using VTK's interaction system, but it has an issue with the picked coordinates being placed where they don't belong. See the GIF below for ...
vardonir's user avatar
  • 135
0 votes
1 answer
47 views

Integrating PCL Visualizer in MFC/win32 window

I am trying to use the PCL Visializer as it is inside an MFC CStatic control : pcl::visualization::PCLVisualizer::Ptr simpleVis(pcl::PointCloud<pcl::PointXYZ>::ConstPtr cloud , HWND ...
Ziri's user avatar
  • 732
0 votes
1 answer
23 views

How to connect a mesh using gmsh and vtk in python

I'm working on a project that creates and manipulates meshes on geometric objects using the finite element method. So far, the user imports a file (.step) and selects areas of the object to create ...
lucasteix's user avatar
0 votes
0 answers
10 views

Not able to export 3d volume rendering created using vtk library to .obj or .stl file format

I am using vtkmodules library, to create a 3D model of a heart. I have appended all the images into a list and converted it into an array. The shape of the array is (221,512,512). I am using the ...
Rakshith.R's user avatar
0 votes
0 answers
12 views

question about how to add an vtk node for godot

Recently, I tried godot engine and got the feeling that it would be nice to have vtk possible in godot editor. In advance, I am sorry that I am very new to godot and cannot show any source code for ...
Seong's user avatar
  • 556
0 votes
0 answers
28 views

Missing dlls after building VTK on Windows

I am building VTK 7.1.1 on a Windows machine using cmake and Visual Studio 15 (2017) for use in a java project. The java version I am using is jdk_12.0.2. I follow this procedure: https://gitlab....
Rey de Vaqueiros's user avatar
0 votes
0 answers
18 views

Visualizing streamlines using vtk and mevislab

I am working with a 4D CT scan of the lungs, and I am provided with 100 markers on the surface of the lungs. So basically, I have the coordinates of 100 points changing over 10 timesteps. I would like ...
abhishekkuber's user avatar
0 votes
1 answer
68 views

PySide6 with QML and VTK9

I am trying to get a running example of a Qml application with PySide6 and an integrated VtkRenderWindow. I tried Qml-VTK-Python but there is a problem with the generated rs_qml.py from the pyside6-...
NewPony's user avatar
0 votes
1 answer
44 views

.vti visualization in python

Is there some way to visualize data from .vti file as a volume not using ParaView, but using just python? And if there is, is there a way to connect it with some .stl file? The ideal solution would be ...
Dávid Jopek's user avatar
0 votes
0 answers
13 views

vertex coordinates change whern use vtkOBJImporter and vtkOBJExporter

I have an OBJ file. When I open it with a text editor, I find that it has 38,000 vertices. But when I use vtkObjExporter to export a new OBJ file, I find that the vertex coordinates have become more ...
XiaXiaoHai's user avatar
0 votes
0 answers
23 views

using vtk for a sequence animation in python

I have succesfully managed to make a 3d image of a pallet palletized with a number of boxes, using the following code. import vtkmodules.all as vtk #Create a renderer renderer = vtk.vtkRenderer() ...
Peter Lindhøj Tuxen's user avatar
0 votes
0 answers
30 views

Animation conflict between Qt and VTK integration

I'm facing an issue in my Qt application that involves animation using VTK (Visualization Toolkit). My animation works seamlessly when using native VTK rendering. However, when Qt starts managing the ...
Aleksey Abubyakirov's user avatar
-1 votes
1 answer
63 views

Convert 3d cbct to paranomic 2d image using vtk [closed]

I want to generate 2D panarmoic Image from the series of 3D cbct dental images by VTK (C++ or python). I think Base Alogorithm is Curved Planar Reformation.. but I don't know Make that.. enter image ...
user12759141's user avatar
0 votes
0 answers
19 views

is it possible to add the vtk library to jython 2.7.3 ?(non-native python libraries)

I use jython and I'd like to add the vtk library so that I can run my python code (code that uses vtk modules) on eclipse. I installed jypthon and then I typed the command jython -m pip install vtk ...
anicet's user avatar
  • 1
0 votes
0 answers
23 views

VTK and QT build for webasm, clash during linking for freetype

I am trying to build an application that was previously built by an old developer in QT and VTK, but unfortunately he did not gave further instructions so I am trying to build it again and trying to ...
user2300947's user avatar
0 votes
0 answers
35 views

How to create a grid like structure on graph with javascript library

I am working on a project to create the reservoir depth in 2D graph from C++ to react. I was able to create the below contour graph with random data with plotly.js. But am trying to achieve something ...
Learner's user avatar
  • 73
0 votes
0 answers
36 views

vtk how to disable memory copy when call render()?

memory cost pngafter load a vtkdataset,we use the renderWindow->Render(); but i found it will have a extra memory cost when the data is more than 100mb。 for example:a vtkdataset size is 500mb ,it'...
crazyki1ler's user avatar
0 votes
0 answers
72 views

The procedure entry point could not be located in the dynamic link library in pcl_visu alization.dll

The procedure entry point ?GetAbortOutput@vtkAlgorithm@@UEAA_NXZ could not be located in the dynamic link library C:\Users\kunal.g\source\repos\tree_support\tree_support\pcl_visu alization.dll. How ...
kunal gupta's user avatar
0 votes
0 answers
20 views

Can vtkImageReslice be reversed?

I have a 3D image and an affine matrix I use vtkImageReslice in python to get the resliced numpy array. However, after I perform whatever algorithm on the resliced array, I want to revert it back to ...
jongsung park's user avatar
-1 votes
2 answers
71 views

How to use external resources in React project

I'm working on a React / VTK.js project, In VTK.js to read a VTK file we call this function with the directory of the VTK file (that must be in the public folder tree structure). const reader1 = ...
Oussama Eddahri's user avatar
0 votes
1 answer
69 views

Extracting FEW Cell Data from VTK unstructured grids?

I extracted the cell data according to this answer. Everything works fine, but I get only one set of scalar data, however I have two. reader->GetNumberOfScalarsInFile(); returns 2, but vtkCellData*...
Marseille's user avatar
  • 141
1 vote
0 answers
70 views

Pyvista Challenges, Not Showing Continuous Scale And Rendering is Obfuscated

Newcomer to Pyvista and stackoverflow. I'm running into issues with the color scale and rendering using Pyvista. Here's the code, mostly boilerplate from the Pyvista documentation: import numpy as np ...
GS_1989's user avatar
  • 11
0 votes
0 answers
19 views

Representing Spherocylinder (capsule) in Paraview

I am trying to render spherocylinders (Capsules, pills, E.coli) in Paraview. I am trying to understand how the author [https://discourse.paraview.org/t/tensor-glyph-and-other-quadrics-than-ellipsoids/...
Andres Valdez's user avatar
0 votes
0 answers
70 views

Why does my PyVista plot produce vertical lines of scalars instead of continuous data distribution on my mesh?

import xarray as xr import geovista as gv from geovista.pantry import oisst_avhrr_sst import geovista.theme import numpy as np import pyvista as pv from conversion import to_lonlats def returnClosest(...
rajiv's user avatar
  • 61
0 votes
0 answers
25 views

Screen recorder stopped when another process exists

I have developed a screen recorder with help of accord package. I have set a button for start and stop recording. And also a rotate button whenever i click rotate button my 3d model will rotate. ...
Sujith Saravanan's user avatar
2 votes
1 answer
175 views

pyvista ray trace detects only one intersection

I try to do detect the intersections of a ray with a polygon using pyvista. In this case the polygon is a cube. The cube is defined by points in 2d and then extruded. Why does this simple example ...
Bulbasaur's user avatar
  • 147
0 votes
0 answers
105 views

Kernel Crash when using pyvista.PolyDataFilters.boolean_union()

I'm trying to combine two meshes of simple buildings such that they are "one" without enclosed surfaces. I tried to use the boolean_union operation provided by pyvista. This code works fine ...
Bulbasaur's user avatar
  • 147
0 votes
0 answers
35 views

VTKLoader: why dont handle CellData?

` I wanna get VTP file color data ,but i cant get color data in sources code three.js sources code const piece = json.PolyData.Piece; const compressed = json.attributes.hasOwnProperty( 'compressor' );...
wuhoo's user avatar
  • 1
0 votes
0 answers
35 views

ShallowCopy an array into a vtkImageData

I have a scalar array and a 3D vector array that I want to shallow copy to a vtkImageData. This way whenever data is manipulated, the change in the data is reflected in the array as well as in the ...
afp_2008's user avatar
  • 2,061
0 votes
0 answers
71 views

How can I add a time series animation in GeoVista python?

I have this plot created in the GeoVista library. import xarray as xr import geovista as gv from geovista.pantry import oisst_avhrr_sst import geovista.theme import numpy as np dataset = xr....
rajiv's user avatar
  • 61
0 votes
1 answer
44 views

Can't use gridToVtk

I am trying to use the gridToVtk function in anaconda/spyder so I can export and process my results in paraview, but by using the code below: from evtk.hl import gridToVTK I got the error message: No ...
Egandoue Peroumal's user avatar
1 vote
0 answers
73 views

How to project an image as a texture in VTK?

I have a STL file of a 3D scanned object (roughly planar surface, but ~4 million triangles due to surface texture) which I'd like to project an image onto using VTK. I found an example which looked ...
PHinisheD's user avatar
0 votes
0 answers
113 views

Cannot import vtk module on Window's machine

For reproducibility, I'm using python 3.10.9, running Windows 10 Pro, version 22H2, build 19045.2965. And I'm trying to install vtk 9.2.6. I create a virtual env with python -m venv env, activate the ...
Bryce's user avatar
  • 1
0 votes
0 answers
272 views

error with vtk package due to conda-forge

i downloaded and installed 3d software from https://cadquery.readthedocs.io/en/latest/installation.html, the problem which it caused is that im being unable to use pyvista bcs of vtk error. Before it ...
nfrst's user avatar
  • 1
0 votes
0 answers
57 views

How to enable multi-touch interaction in VTK (e.g. zoom in on stl by pinching)?

I'm trying to make an stl viewer using vtk (9.2.6 in python 3.11.2), which will be part of a larger application. The application will run on a windows 10 pc with touchscreen but I cannot figure out ...
RobinVC's user avatar
0 votes
0 answers
19 views

VTK Unresolved External Symbol vtkIneractionStyle_AutoInit_Construct

guys! I followed the lessons by Quaoar's Workshop on Youtube, downloaded the source code of vtk (version: 9.2.6), and compiled it successfully. However, when I included the following line in my main....
Rick.X's user avatar
  • 623
0 votes
0 answers
33 views

How can I get a picture that is depicted on a slicePlane?

I'm using the ImageResliceMapper example and I'm running into a problem that I can't extract the image the section plane for further processing When trying to get PolyData return undefined. I would ...
Анатолий Дуров's user avatar
0 votes
1 answer
50 views

Draw Circular rings around Arc points - VTK UnstructuredGrid

I am trying to create circular rings aroung arc points. I'm trying to create a Cylinderical bend between two points. For this I have done Following: Draw an ARC between two points. For that, I have 2 ...
Ans shakeel's user avatar
0 votes
0 answers
63 views

Use cv2 aruco marker pose estimation to get camera position in vtk

I am trying to find a camera position based on the cv2.aruco.estimatePoseSingleMarkers function. I have placed a marker on a real object of which i also have an stl. The Marker is placed on a ...
Objectinterest's user avatar
0 votes
0 answers
61 views

PCL installation problems

I tried to install PCL1.13.1 to run the project "Loam_Livox", but when I use cmake, it come with the error below: Missing vtk modules: vtkRenderingOpenGL2;vtkRenderingContextOpenGL2 what I ...
Departure's user avatar
0 votes
0 answers
32 views

VTK for 3D sonography array data visualization

I am trying to display 3D sonography(array data) using VTK. I using VTK volume to plot it, but it look strange. 3D sonography array size is 27460750 3D sonography visualize in VTK I have tried using ...
JIUN-YU's user avatar
0 votes
0 answers
114 views

pyvista._vtk error. Bug located in mapdl.aplot()

Description of the bug I have a problem when I ran mapdl.aplot(show_area_numbering=True, color_areas=True) This is output of my problem There are something issue in pyvista._vtk when it try to import ...
Thang Le Xuan's user avatar
0 votes
0 answers
18 views

default checkbox with vuetify

I want to set the first checkbox as checked by default, but it's not working. I'm using the option 'value=true', and I also tried with 'v-model=true', but it still doesn't work. Here's the code ...
Assima's user avatar
  • 1
0 votes
0 answers
144 views

VTK marching cubes or contour for surface reconstruction using python

I am new to VTK python. I have a csv file with 8000 point (X, Y, Z) and corresponding 8000 signed distances (sdf) I am trying to read the data and apply VTK filter to reconstruct the surface at sdf = ...
Ricky's user avatar
  • 1
0 votes
0 answers
33 views

Maintaining surface topology and handling periodic boundary conditions in deformed point clouds

Body: In my molecular dynamics simulation using periodic boundary conditions, I have defined a closed region enclosed by an irregular surface. Due to the periodic boundary conditions, the closed ...
dx yu's user avatar
  • 1
0 votes
0 answers
29 views

ERROR: Parameter 0 has unknown type 17CameraChangeEvent?

I have been trying to call a Typescript function that I passed as a pointer into the C++ file using emscripten:: val. Thereafter, I am calling the function using the argument necessary using val. ...
addie293's user avatar
0 votes
2 answers
131 views

Combining Qt6 and VTK9.2 on MacOS

I'm trying to use VTK in a Qt6 application. I've successfully been able to use it in a Qt5 application, but want to move to Qt6. I am on MacOS Ventura (13.2.1). There I have installed Qt5.15.2 and Qt6....
Borage's user avatar
  • 43
0 votes
0 answers
79 views

Calling a TypeScript method from C++ using Emscripten

The following is my TypeScript code: export class VtkWasmRenderComponent extends EmscriptenWasmComponent implements AfterViewInit, OnDestroy { ..... ..... ..... vtkCameraChanged(...
addie293's user avatar
0 votes
1 answer
96 views

Vtk vtkResliceImageViewer loads MPR and displays crosshairs with pyqt5

I use vtkResliceImageViewer to display MPR, set vtkResliceImageViewer().SetResliceModeToAxisAligned, why my crosshair is very virtual and invisible, it will be covered by the image here is my code ...
Drink's user avatar
  • 1

1
2 3 4 5
49