From ba030da1d64cb546a526f1451058d9cd843467ac Mon Sep 17 00:00:00 2001 From: Vicente Adolfo Bolea Sanchez Date: Mon, 17 Feb 2020 10:51:42 -0500 Subject: [PATCH] remove confusing parts of the README example code --- README.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/README.md b/README.md index 1f173293e..65b8063d6 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,6 @@ Marching Cubes algorithm on it, and render the results to an image: #include #include #include -#include vtkm::io::reader::VTKDataSetReader reader("path/to/vtk_image_file"); vtkm::cont::DataSet inputData = reader.ReadDataSet(); @@ -179,21 +178,10 @@ vtkm::cont::DataSet outputData = filter.Execute(inputData); // compute the bounds and extends of the input data vtkm::Bounds coordsBounds = inputData.GetCoordinateSystem().GetBounds(); -vtkm::Vec totalExtent( coordsBounds.X.Length(), - coordsBounds.Y.Length(), - coordsBounds.Z.Length() ); -vtkm::Float64 mag = vtkm::Magnitude(totalExtent); -vtkm::Normalize(totalExtent); // setup a camera and point it to towards the center of the input data vtkm::rendering::Camera camera; camera.ResetToBounds(coordsBounds); - -camera.SetLookAt(totalExtent*(mag * .5f)); -camera.SetViewUp(vtkm::make_Vec(0.f, 1.f, 0.f)); -camera.SetClippingRange(1.f, 100.f); -camera.SetFieldOfView(60.f); -camera.SetPosition(totalExtent*(mag * 2.f)); vtkm::cont::ColorTable colorTable("inferno"); // Create a mapper, canvas and view that will be used to render the scene