VTKFIG
0.25.0
Easy VTK based in situ visualization
|
Prerequisite is a C++11 compiler and an installed development version of VTK. So far, the code been tested with VTK 7.1, VTK 8.1 and VTK 8.2. With few #ifdefs, on still can make it running on VTK 6.3. Build uses the standard CMake way. E.g. to configure with clang, use
Versions of CMake prior to 3.02 do not do automatic configuration for C++11, so in this case you need to issue
You will find the compiled examples in build/examples
. find_package
from another project will find vtkfig
build tree via the cmake registry. The shared library libvtkfig.so
is created in build/src
and can be copied to some directory on LD_LIBRARY_PATH
, where it can be found by the Julia package VTKFig.jl
.
Alternatively, perform in the build directory
to install the includes and libraries in a directory defined by CMAKE_INSTALL_PREFIX
.
If the output is very terse (without notes on OpenGL v2 support, z-buffers etc), you probably will be bound to a slow software rendering path. Fixing this depends on your VTK installation and your graphics hardware.
Similarly, you should be able to run any other example in build/examples
.
This feature is rather experimental.
You can add the -ssh flag and replace localhost by another computer in the network.
Use the usual cmake mechanism. In CMakeLists.txt
, add
and add VTKFIG_INCLUDES
and VTKFIG_LIBRARIES
to corresponding variables.
In particular, these will draw in all necessary vtk dependencies.