Commit c94422d2 authored by Shreeraj Jadhav's avatar Shreeraj Jadhav Committed by Kitware Robot
Browse files

Merge topic 'Readme-Testing-Config-Example'

c374c2cd

 Document Supported and Tested Versions of Dependencies, Update Example.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Sujin Philip's avatarSujin Philip <sujin.philip@kitware.com>
Merge-request: !1229
parents 72ba3d1c c374c2cd
......@@ -65,6 +65,7 @@ VTK-m Requires:
+ [CMake](http://www.cmake.org/download/)
+ CMake 3.3+ (for any build)
+ CMake 3.9+ (for CUDA build)
+ CMake 3.11+ (for Visual Studio generator)
Optional dependencies are:
......@@ -91,6 +92,21 @@ Optional dependencies are:
+ [OS Mesa](https://www.mesa3d.org/osmesa.html)
+ EGL Driver
VTK-m has been tested on the following configurations:
+ On Linux
+ GCC 4.8.5, 5.4.0, 6.4.0, Clang 3.8.0
+ CMake 3.9.2, 3.9.3, 3.10.3
+ CUDA 8.0.61, 9.1.85
+ TBB 4.4 U2, 2017 U7
+ On Windows
+ Visual Studio 2015, 2017
+ CMake 3.3, 3.11.1
+ CUDA 9.1.85
+ TBB 2017 U3, 2018 U2
+ On MacOS
+ AppleClang 6.0
+ TBB 2017 U6
## Building ##
......@@ -124,14 +140,17 @@ Marching Cubes algorithm on it, and render the results to an image:
```cpp
vtkm::io::reader::VTKDataSetReader reader("path/to/vtk_image_file");
inputData = reader.ReadDataSet();
vtkm::cont::DataSet inputData = reader.ReadDataSet();
std::string fieldName = "scalars";
vtkm::Float64 isovalue = 100.0f;
std::string fieldName = "pointvar";
vtkm::Range range;
inputData.GetPointField(fieldName).GetRange(&range);
vtkm::Float64 isovalue = range.Center();
// Create an isosurface filter
vtkm::filter::MarchingCubes filter;
filter.SetIsoValue(0, isovalue);
filter.SetActiveField(fieldName);
vtkm::cont::DataSet outputData = filter.Execute(inputData);
// compute the bounds and extends of the input data
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment