Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
phcerdan
VTK-m
Commits
ff94622c
Commit
ff94622c
authored
Apr 02, 2018
by
Utkarsh Ayachit
⛰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix README.md based on changes to Filter API.
parent
eca65146
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
README.md
README.md
+1
-4
No files found.
README.md
View file @
ff94622c
...
...
@@ -132,9 +132,7 @@ std::string fieldName = "pointvar";
// Create an isosurface filter
vtkm
::
filter
::
MarchingCubes
filter
;
filter
.
SetIsoValue
(
0
,
isovalue
);
vtkm
::
filter
::
Result
result
=
filter
.
Execute
(
inputData
,
inputData
.
GetField
(
fieldName
)
);
filter
.
MapFieldOntoOutput
(
result
,
inputData
.
GetField
(
fieldName
));
vtkm
::
cont
::
DataSet
outputData
=
filter
.
Execute
(
inputData
);
// compute the bounds and extends of the input data
vtkm
::
Bounds
coordsBounds
=
inputData
.
GetCoordinateSystem
().
GetBounds
();
...
...
@@ -162,7 +160,6 @@ vtkm::rendering::CanvasRayTracer canvas(512, 512);
vtkm
::
rendering
::
Color
bg
(
0.2
f
,
0.2
f
,
0.2
f
,
1.0
f
);
// Render an image of the output isosurface
vtkm
::
cont
::
DataSet
&
outputData
=
result
.
GetDataSet
();
scene
.
AddActor
(
vtkm
::
rendering
::
Actor
(
outputData
.
GetCellSet
(),
outputData
.
GetCoordinateSystem
(),
outputData
.
GetField
(
fieldName
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment