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
d8175015
Commit
d8175015
authored
Mar 31, 2016
by
Robert Maynard
Browse files
Fixed issues with NVCC and anonymous namespace compilation issues.
parent
12ffd536
Changes
1
Hide whitespace changes
Inline
Side-by-side
vtkm/filter/MarchingCubes.hxx
View file @
d8175015
...
...
@@ -26,8 +26,9 @@
#include
<vtkm/worklet/DispatcherMapTopology.h>
#include
<vtkm/worklet/ScatterCounting.h>
namespace
{
namespace
vtkm
{
namespace
filter
{
namespace
marchingcubes
{
typedef
vtkm
::
Vec
<
vtkm
::
Id2
,
3
>
Vec3Id2
;
typedef
vtkm
::
Vec
<
vtkm
::
Vec
<
vtkm
::
Float32
,
3
>
,
3
>
FVec3x3
;
...
...
@@ -311,9 +312,6 @@ struct FirstValueSame
}
namespace
vtkm
{
namespace
filter
{
//-----------------------------------------------------------------------------
MarchingCubes
::
MarchingCubes
()
:
vtkm
::
filter
::
DataSetWithFieldFilter
<
MarchingCubes
>
(),
...
...
@@ -350,6 +348,11 @@ vtkm::filter::DataSetResult MarchingCubes::DoExecute(const vtkm::cont::DataSet&
const
DeviceAdapter
&
)
{
using
vtkm
::
filter
::
marchingcubes
::
ApplyToField
;
using
vtkm
::
filter
::
marchingcubes
::
EdgeWeightGenerate
;
using
vtkm
::
filter
::
marchingcubes
::
EdgeWeightGenerateMetaData
;
using
vtkm
::
filter
::
marchingcubes
::
ClassifyCell
;
if
(
fieldMeta
.
IsPointField
()
==
false
)
{
//todo: we need to mark this as a failure of input, not a failure
...
...
@@ -413,7 +416,7 @@ vtkm::filter::DataSetResult MarchingCubes::DoExecute(const vtkm::cont::DataSet&
edgeDispatcher
.
Invoke
(
vtkm
::
filter
::
ApplyPolicy
(
cells
,
policy
),
//cast to a scalar field if not one, as cellderivative only works on those
make_ScalarField
(
field
),
marchingcubes
::
make_ScalarField
(
field
),
vtkm
::
filter
::
ApplyPolicy
(
coords
,
policy
)
);
...
...
@@ -451,7 +454,7 @@ vtkm::filter::DataSetResult MarchingCubes::DoExecute(const vtkm::cont::DataSet&
// the id2 which is the first entry in the zip pair
vtkm
::
cont
::
ArrayHandleZip
<
Id2HandleType
,
KeyType
>
zipped
=
vtkm
::
cont
::
make_ArrayHandleZip
(
uniqueIds
,
keys
);
Algorithm
::
Unique
(
zipped
,
FirstValueSame
());
Algorithm
::
Unique
(
zipped
,
marchingcubes
::
FirstValueSame
());
}
else
{
...
...
@@ -464,7 +467,7 @@ vtkm::filter::DataSetResult MarchingCubes::DoExecute(const vtkm::cont::DataSet&
// the id2 which is the first entry in the zip pair
vtkm
::
cont
::
ArrayHandleZip
<
Id2HandleType
,
WeightHandleType
>
zipped
=
vtkm
::
cont
::
make_ArrayHandleZip
(
uniqueIds
,
this
->
InterpolationWeights
);
Algorithm
::
Unique
(
zipped
,
FirstValueSame
());
Algorithm
::
Unique
(
zipped
,
marchingcubes
::
FirstValueSame
());
}
//4.
...
...
@@ -537,6 +540,8 @@ bool MarchingCubes::DoMapField(vtkm::filter::DataSetResult& result,
const
vtkm
::
filter
::
PolicyBase
<
DerivedPolicy
>&
,
const
DeviceAdapter
&
)
{
using
vtkm
::
filter
::
marchingcubes
::
ApplyToField
;
if
(
fieldMeta
.
IsPointField
()
==
false
)
{
//not a point field, we can't map it
...
...
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