vtk

Gtkglext and gtkglarea gtk3 windows does not work

你。 提交于 2019-12-23 03:14:40
问题 I need to get working gtk3 with vtk6. Ive just built (after some effort) gtkglext for gtk3. Later I built vtkmm1.2 with the win32 patches and I do not see vtk widget. Due to this, I discovered I cant see any draw in the gtkglext examples. On the other side, Ive tried the excellent example of gtkglarea (the new, gtk built in one ) with plain opengl from https://www.bassi.io/articles/2015/02/17/using-opengl-with-gtk/ and I get no draw because "fb setup not supported". It seems the framebuffer

How to tell VTK pipeline to use new vtkPolyData updated via TimerEvent?

放肆的年华 提交于 2019-12-23 01:54:58
问题 Intention I wrote a VTK application that generates a spiral using vtkPoints > vtkPolyLine > vtkPolyData > vtkPolyDataMapper and displays it. This works fine, if done static at the initialization of the program. Now, I want to add new data points dynamically. The intention is to visualize measurements in real time, so new data will be added in certain intervals. Issues Currently, I just implemented a TimerEvent to update the vtkPoints and vtkPolyLine. But, the program just shows the static

Embedding VTK object in PyQT5 window

对着背影说爱祢 提交于 2019-12-22 14:04:23
问题 I'm working on a generative design project for 3D models. I need to create a simple QT application that allows the user to view meshes using VTK and includes a few buttons for feedback into the generation algorithms. GUIs are something completely new to me so I'm quite stumped on how to integrate the code from here for a viewer into a wider program. For now I'm merely trying to create a single button and a 3D cone in the viewer. My code so far crashes when run. It uses the

C/C++ library for VTK IO [closed]

烂漫一生 提交于 2019-12-22 10:27:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I have a simulation in C++ which generates huge amount of data. Right now I am using MATLAB libraries to save the results as a .mat file, but eventually I will be needing an open source binary format. I don't want to implement my own binary format and ASCII is not an option. I heard that VTK provides .vtk binary

TVTK Error in Mayavi (Python)

南楼画角 提交于 2019-12-22 03:48:08
问题 I'm running a Fedora 17 (x64) machine, and I tried installing Mayavi for python via yum install mayavi which worked fine, except every time I write a code where I call a mayavi module (like mlab) : from enthought.mayavi import mlab it yells with the error ******************************************************************************** WARNING: Imported VTK version (5.8) does not match the one used to build the TVTK classes (5.6). This may cause problems. Please rebuild TVTK. *****************

create multiple polylines given a set of points using vtk

故事扮演 提交于 2019-12-21 20:56:46
问题 I need to display the trajectories in space of 50 particles using vtk and paraview. Currently my data is pos(x,y,t,n) where n is the label of the n-th particle. I have saved all my data in a vtk file which is organized as: # vtk DataFile Version 3.0 VTK from Matlab BINARY DATASET POLYDATA POINTS 199250 double [PROPERLY ORGANIZED BINARY COORDINATES OF THE 199250 POINTS] The above file can be imported correctly into ParaView, and at a first glance I can apply the following programmagle filter

Paraview “possible mismatch of datasize with declaration” error

北城以北 提交于 2019-12-21 20:48:17
问题 Paraview (v4.1.0 64-bit, OSX 10.9.2) is giving me the following error: Generic Warning: In /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Legacy/vtkDataReader.cxx, line 1388 Error reading ascii data. Possible mismatch of datasize with declaration. I'm not sure why. I've double-checked that fields are all of the expected lengths, and none of the values are NaN, inf, or otherwise extremely large. The issue starts with the output from

Disable or Catch VTK warnings in vtkOutputWindow when embedding Mayavi

会有一股神秘感。 提交于 2019-12-21 12:42:06
问题 I'd like to either disable the VTK warning window or, better yet, catch them to handle with my application's logging system. My application is using an embedded mayavi view, and I don't want error windows popping up that I have no control over. The following code demonstrates the warning window. import numpy as np from mayavi import mlab x1 = np.array([1, 1, 2, 3]) y1 = np.array([1, 1, 4, 2]) z1 = np.array([1, 1, 5, 1]) mlab.plot3d(x1, y1, z1) mlab.show() Ok, I've done some research and

What are some recommended resources and tutorials for learning the VTK library toolkit? [closed]

做~自己de王妃 提交于 2019-12-21 10:31:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Apart from the books available from Kitware, I am looking for some links to any resources that could help in learning the VTK library. Preferably, with example code and tutorials. Google results have not been terribly informative for me. So I am asking here for links to VTK resources. 回答1: I used vtk on my last

mesh decimation in python

本小妞迷上赌 提交于 2019-12-21 06:28:22
问题 I have a high resolution triangular mesh with about 2 million triangles. I want to reduce the number of triangles and vertices to about ~10000 each, while preserving its general shape as much as possible. I know this can be done in Matlab using reducepatch. Another alternative is qslim package. Also there is decimation functionality in VTK which has python interface, so technically it is possible in python as well. Meshlab is probably available in python as well (?). How can I do this kind of