vtk

Combining Qt 5.4.1 with vtk 6.2.0 (using CMake GUI 3.2.1) on windows

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I know almost nothing about CMake. What I'm trying to do is to use VTK with Qt. Unfortunately, I'm stuck at the CMake part. For some reason, when I press "configure", I get the following error: CMake Error at GUISupport/Qt/CMakeLists.txt:58 (find_package): By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Widgets", but CMake did not find one. Could not find a package configuration file provided by "Qt5Widgets" with any of the following

no override found for 'vtkPolyDataMapper'

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to use vtk in my code, but I'm having problems running an example. I have almost no clue about the reasons since it's the first time I'm using it and I'm not very experienced. I'm using visual studio 2012 and x64 platform. Since I don't really know which libs should I use I added all of them to the "Additional Dependencies". The example is given in this link . The problem is that when I run it, the window shows this message Generic Warning : In C : \location\VTK6 . 0.0 \Rendering\Core\vtkPolyDataMapper . cxx , line 27

ImportError: No module named vtkCommonPython

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to install Python with VTK on my computer, but when I want to import VTK, I get an error: import vtk Traceback (most recent call last): File " ", line 1, in File "C:\vtk\Wrapping\Python\vtk\__init__.py", line 41, in from vtkCommonPython import * ImportError: No module named vtkCommonPython I already checked my paths and I have the file 'vtkCommonPython.pyd' in the bin folder. Can anyone help me with this problem? 回答1: I ran into a very similar problem, and fixed it by adding /usr/local/lib/python2.7/site-packages/vtk/ to the

installing Mayavi with pip - no module named vtk

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 选择语言 中文(简体) 日语 英语 中文(繁体) 由 翻译 强力驱动 问题: I want to use Mayavi. Situation I use a MacBook Air, with OSX 10.7.3. I use Python 2.7.2 I have virtualenv installed. But I have not used it for this installation. I've manually installed all it's dependencies, including VTK . For VTK , I followed its installation guide and installed the python wrapper. Now if I open a new terminal window and open python, I can import vtk without any error. Problem I try to install Mayavi with the following command: pip install mayavi But the following error occurs:

CMake could not find the VTKConfig.cmake

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to compile a program in CMake but I'm getting this error. By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "VTK", but CMake did not find one. Could not find a package configuration file provided by "VTK" (requested version 6.1) with any of the following names: VTKConfig.cmake vtk-config.cmake I can't find the relevant files (VTKConfig.cmake or vtk-config.cmake) on the machine but do have VTKConfig.cmake.in (which also doesn't work). Does anyone know

vtk随鼠标运动实时画支线

匿名 (未验证) 提交于 2019-12-03 00:26:01
#include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkSmartPointer.h> #include <vtkPointPicker.h> #include <vtkCamera.h> #include <vtkInteractorStyleTrackballCamera.h> #include <vtkNamedColors.h> #include <vtkObjectFactory.h> #include<vtkLine.h> #include<vtkProperty.h> #include<vtkPolyLine.h> #include<vtkUnstructuredGrid.h> #include<vtkDataSetMapper.h> #include<vtkLineSource.h> #include<vtkRendererCollection.h> #include<vtkCellPicker.h> #include "vtkAutoInit.h"

vtk8.1.0更新说明

匿名 (未验证) 提交于 2019-12-03 00:26:01
url: https://blog.kitware.com/vtk-8-1-0 VTK开发团队很高兴推出VTK 8.1.0。 此版本通过VTK-m继续VTK向多线程和GPU启用的细粒度并行处理过滤器发展。在VTK 8.0.0中引入的VTK-m现在与VTK捆绑在一起(技术上我们使用git子模块),我们对性能进行了改进,并添加了新的算法(vtkmExtractVOI,vtkmPolyDataNormals,vtkmTriangleMeshPointNormals)。我们也开始了将vtkSMP线程过滤器转换为基于VTK-m的实现的过程。为了支持VTK-m,我们将最低C ++编译器要求更新为Microsoft Visual Studio 2013或更新版本,GCC 4.8.3或更新版本,Clang 3.3或更新版本,Apple Clang 5.0(来自Xcode 5.0)或更新版本。 除了废弃一些vtkSMP过滤器之外,此版本还包含大量的弃用和不推荐的代码删除。弃用包括: Tcl绑定 Qt4兼容性 传统的OpenGL1后端以及紧密结合的功能,如即时模式渲染和多渲染实现的抗锯齿,景深和运动模糊效果 vtkHyperOctree被vtkHyperTreeGrid取代 vtkInstantiator vtkInstantiator的替换是在适用的情况下使用vtkObjectFactory

VTK图像遮罩(vtkImageMask)

匿名 (未验证) 提交于 2019-12-03 00:17:01
#!/usr/bin/env python import vtk reader = vtk.vtkJPEGReader() reader.SetFileName("Pygoscelis adeliae.jpg") reader.Update() extent = reader.GetOutput().GetExtent() # Create a rectanglular mask maskSource = vtk.vtkImageCanvasSource2D() maskSource.SetScalarTypeToUnsignedChar() maskSource.SetNumberOfScalarComponents(1) maskSource.SetExtent(extent) # Initialize the mask to black maskSource.SetDrawColor(0,0,0); maskSource.FillBox(extent[0],extent[1],extent[2],extent[3]) # Anything non-zero means "make the output pixel equal the input pixel." # If the mask is zero, the output pixel is set to

Error C1083 Cannot open include file: 'vtkGUISupportQtOpenGLModule.h': No such file or directory

久未见 提交于 2019-12-02 08:29:41
I'm trying to link VTK library to my project on Windows 7. The error I get is: Error C1083 Cannot open include file: 'vtkGUISupportQtOpenGLModule.h': No such file or directory The thing in my code that provokes the error is #include<QVTKWidget2.h> . Src and build directories of my VTK copy are separate. The linking tool I use is cmake . The build tool: VS 2015 . My CMakeLists.txt and VTK's cache u can see below. Thanks in advance for any suggestions. CMakeLists.txt cmake_minimum_required(VERSION 2.8) set(PROJECT Pro) project(${PROJECT}) set(BUILD_SHARED_LIBS false) message(" BUILD_SHARED_LIBS