vtk

VTK install error cannot find libvtkCommonCore-6.3.so.1

那年仲夏 提交于 2019-12-10 11:24:36
问题 I'm trying to install VTK but I'm getting the following error CMake Error at Common/Core/cmake_install.cmake:47 (file): file INSTALL cannot find "/home/VTK-6.3.0/VTKBuild/lib/libvtkCommonCore-6.3.so.1". Call Stack (most recent call first): cmake_install.cmake:100 (include) These are the steps I followed cd VTKBuild cmake ..\ -D"CMAKE_INSTALL_PREFIX:PATH=/home/VTK-6.3.0/VTKBuild" make make install Can anyone point me to what might be going wrong 回答1: I had to turn off shared library option,

VTKCamera difference between focal point and position

最后都变了- 提交于 2019-12-10 08:01:12
问题 I am using the vtkCamera and would am trying to move it around and make it look at a certain point. For example, if I want to put the camera at position (x,y,z) and make it look at (0,0,0) for example with gluLookAt in openGL we would set the eye coordinates to (x,y,z) and the centre coordinates to (0,0,0) and the up vector to (0,1,0) . In vtk however, using the vtkCamera we have three separate methods, namely setPosition , setFocalPoint and setViewUp my question is what do setPositon and

Activiz 使用笔记-3 数据源(1)

我是研究僧i 提交于 2019-12-09 14:22:24
activiz本身自带的user guide 比较简单,所以我按着vtk的user guide来慢慢学。从简单例子入手去学习VTK。当然我之前已经看过很多VTK相关的东西了,但是没有自己去写去总结,导致我一段时间不用就忘记了。所以这次写博客就从简单的开始,一步一步写下来。记录自己的学习过程。 不过,(⊙﹏⊙)b 我英文不太好,所以是看中文版的来学习的。参考的是这一本: http://wenku.baidu.com/link?url=O2vrMU-8PIQM4aHYqLVM6ABSNucK_GLBrU3vWAa0gy1qvWYk71zEjroGgarFF3yY5n3g3CkeswB42IUnts1lqcWa6w8iFFclHomv312FHA_ 有需要的小伙伴们可以自己下载。 《VTK用户手册》 P20 VTK 建立应用程序的基本过程如下: 1) 读取/生成数据 2)过滤数据 3) 绘制图形 4) 交互操作 VTK 提供了两种获取数据的方法,一种是读取已经存在的数据文件,另一种是通过算法或数学表达式生成数据。 在可视化流水线中起始节点对象被称为源对象,源对象又被分为程序源对象、读源对象,通过数学方法生成数据的对象称为程序源对象,从数据文件中读取数据的对象被称为读源对象。 首先,做一个程序源对象的读取: (额

Mayavi points3d with different size and colors

℡╲_俬逩灬. 提交于 2019-12-09 02:31:57
问题 Is it possible in mayavi to specify individually both the size and the colors of every point? That API is cumbersome to me. points3d(x, y, z...) points3d(x, y, z, s, ...) points3d(x, y, z, f, ...) x, y and z are numpy arrays, or lists, all of the same shape, giving the positions of the points. If only 3 arrays x, y, z are given, all the points are drawn with the same size and color. In addition, you can pass a fourth array s of the same shape as x, y, and z giving an associated scalar value

Binary VTK for RECTILINEAR_GRID from fortran code

回眸只為那壹抹淺笑 提交于 2019-12-09 02:01:15
问题 I am having a fortran code to generate a grid in binary VTK format. This code produces a binary VTK file like this one: # vtk DataFile Version 3.0 vtk output BINARY DATASET RECTILINEAR_GRID DIMENSIONS 2 2 1 X_COORDINATES 2 float ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ Y_COORDINATES 2 float ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ Z_COORDINATES 1 float ^@^@^@^@^@^@^@^@ When, I try to open it with ParaView it crashes with the following error message: ERROR: In /home/user/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1

Close VTK window (Python)

心不动则不痛 提交于 2019-12-08 16:42:08
问题 Consider the following script import vtk ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) an_actor = vtk.... # create an actor ren.AddActor(an_actor) iren.Initialize() renWin.Render() iren.Start() If the script ends there, everything is alright and the created window will be closed and the resources freed up when the window is closed manually (click X) or an exit key is pressed (Q or E). However,

using vtkTimerCallback with QVTKRenderWindowInteractor not working

六眼飞鱼酱① 提交于 2019-12-08 09:19:26
问题 Ive got a problem with vtk (8.1), pyqt5 (5.10.1). If I use the vtkCallBackTimer with the "original" vtk.vtkRenderWindowInteractor() its all working fine. But if I use the vtk.qt.QVTKRenderWindowInteractor.QVTKRenderWindowInteractor() the callback function is executed successively with no pause. Here is the example: import sys from PyQt5 import QtWidgets import vtk from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor from mainwindow import Ui_MainWindow class

vtk depth peeling issue doing multiple renders

感情迁移 提交于 2019-12-08 06:40:47
问题 We recently encountered strange behavior of VTK (v7) after rendering a transparent object for the second time using depth peeling. The first render looks nice, rendering transparency as it should. After closing the render window and creating another one (same set-up), vtk shows an empty render and the application/python crashes after closing that window. Problem Event Name: APPCRASH Application Name: Test.exe Application Version: 0.0.0.0 Application Timestamp: 57be97a5 Fault Module Name:

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

江枫思渺然 提交于 2019-12-08 05:33:26
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 data generated before the vtkRenderWindowInteractor was started. I also tried to use "Modified()" and

Gtkglext and gtkglarea gtk3 windows does not work

老子叫甜甜 提交于 2019-12-08 04:18:24
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 is complete, checking gtkglarea.c. How can i solve this? Anyone have been able to draw something in gtk