Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Todd Kordenbrock
VTK-m
Commits
15e1f80d
Commit
15e1f80d
authored
Jan 08, 2016
by
T.J. Corona
Browse files
Generalize MarchingCubes input with additional template parameters.
parent
360694b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
vtkm/worklet/MarchingCubes.h
View file @
15e1f80d
...
...
@@ -246,13 +246,13 @@ public:
MarchingCubes
()
{}
template
<
typename
CellSetType
,
typename
StorageTag
,
typename
CoordinateType
>
template
<
typename
CellSetType
,
typename
StorageTag
Field
,
typename
StorageTagVertices
,
typename
StorageTagNormals
,
typename
CoordinateType
>
void
Run
(
const
float
&
isovalue
,
const
CellSetType
&
cellSet
,
const
vtkm
::
cont
::
CoordinateSystem
&
coordinateSystem
,
const
vtkm
::
cont
::
ArrayHandle
<
FieldType
,
StorageTag
>&
field
,
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Vec
<
CoordinateType
,
3
>
>
vertices
,
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Vec
<
CoordinateType
,
3
>
>
normals
)
const
vtkm
::
cont
::
ArrayHandle
<
FieldType
,
StorageTag
Field
>&
field
,
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Vec
<
CoordinateType
,
3
>
,
StorageTagVertices
>
vertices
,
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Vec
<
CoordinateType
,
3
>
,
StorageTagNormals
>
normals
)
{
// Set up the Marching Cubes case tables
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
IdComponent
>
edgeTable
=
...
...
Write
Preview
Supports
Markdown
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