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

Generating a 3D object (e.g. via Mayavi) and exporting it as 3D image stack (e.g. tiff)

My current task is to generate a 3D image space where there are 3D objects (of iso-surfaces) that I designed and export it as an image stack (numpy or tiff). I came down to using Mayavi to generate 3D iso-surfaces. I know Mayavi is originally…
peterpark828
  • 177
  • 1
  • 1
  • 9
0
votes
1 answer

How can I compose several xml-vtk files (vtu, vti) into one to get an animation?

I have a simulation which produces a bunch of vtu (also pvtu) and vti (also pvti) files which, as I understand, represent the configuration of points in one timestamp. But is there a way to group them into one close-to-vtk file to be able to…
0
votes
1 answer

How display normal on a vtkPolyData vtkCylinderSource with vtkPolyDataNormals?

I'm trying to display the normalsof each cell of a cylinder source vtkCylinderSource. I'm using vtkPolyDataNormals class and vtkGlyph3D but the normals are not showing up on the QT view. I don't undersand what I'm doing wrong. Here the code I use…
ymmx
  • 4,769
  • 5
  • 32
  • 64
0
votes
1 answer

How to convert file.pvsm to file.vtk

Is there any way to convert .pvsm file (for ParaView) to .vtk file? I want to write a script that does that. It should work from command line in Linux.
0
votes
0 answers

vtk.vtkOBJExporter not exporting entire rendering

I am trying to export a VTK rendering as an OBJ file to be viewed in Meshlab. Everything appears normal until I open the .obj file in Meshlab, where only the spheres have been exported and not any of the tubes I have connecting the spheres. I have…
Matt
  • 5
  • 2
0
votes
1 answer

How to save a VTK render as a .vtk or .stl?

I have created a render of a 3D network initially created in Networkx, however now that I have this render I would ultimately like to export it as a single .stl file. From the code below, how would I be able to combine the glyph, tubes, ball into…
Matt
  • 5
  • 2
0
votes
1 answer

Visualizing networkx graph in VTK but nothing is rendering?

I receive no errors when trying to run this code, however nothing is rendered and only a blank screen appears. Please let me know where I have gone wrong. node_pos is a dictionary with all node coordinates keyed to node number, and G is the networkx…
Matt
  • 5
  • 2
0
votes
1 answer

3D vtk objects are shifted after aligning them along the direction vector

I have several vtk poly data objects, equal in size that I want to align along a normalized direction vector centrically, shown on figure A. The vector below is calculated based on the three 3D points (red dots on figures) using SVD (in line of best…
mystic.06
  • 189
  • 8
0
votes
1 answer

VTK: Compiling with Java Wrappers - vtk.jar missing

I am trying to build VTK under Windows 10 for use in Java using Visual Studio 2019 basically according to this this and this tutorial. The cmake part seems to work fine. I end up with the following config: The build step (Build ALL_BUILD) in Visual…
raedma
  • 293
  • 1
  • 12
0
votes
1 answer

Align 3D object to direction vector

I represent a vtk poly data object that I read with vtkPlyReader and want to align it to given normalized direction vector, so that its orientation matches with that vector. directionVector = np.array([-0.1134, -0.0695, 0.9911]) plyReader =…
mystic.06
  • 189
  • 8
0
votes
1 answer

how to extract the foreground from vtkWindowToImageFilter?

I'm integrating vtk with qt, i have vtkWindowToImageFilter with input set to vtkGenericOpenGLRenderWindow, how come i extract the image foreground only? vtkWindowToImageFilter *w2if =…
Error
  • 820
  • 1
  • 11
  • 34
0
votes
2 answers

Calculating volume of 3D model in Python

I have a nii file of a kidney which I upload in Python. Is there any function in itk or vtk to calculate a volume of the kidney?
Koko3100
  • 11
  • 2
0
votes
1 answer

custom texture for polydata in vtk

I want to set custom texture for actor, actor for polydata(simple point). I tried to set my own texture for actor(point) and don't know what is wrong
Jevs
  • 25
  • 5
0
votes
0 answers

Compute maximum edge length for subdividing mesh

I have two triangulated meshes m and m1 with the following properties: m_faces: 16640 m_points: 49920 m_surface_area: 178.82696989147524 m1_faces: 8 m1_points: 24 m1_surface_area: 1.440205667851934 Now I would like to subdivide m1 so that it has…
ttsesm
  • 917
  • 5
  • 14
  • 28
0
votes
1 answer

How to initialize a triangular mesh in vtk

I need to create a triangular mesh on vtk from a list of points that I have. The points are stored under sphere, which is a nx9 numpy array where each row represents the three points that make up one triangle. Right now I am doing this: points =…
big_game
  • 11
  • 1
1 2 3
99
100