mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Use better variable names.
This commit is contained in:
parent
4133e40c06
commit
9d6b732750
@ -128,16 +128,16 @@ void GenerateRandomInput(const vtkm::cont::DataSet& ds,
|
||||
pcoords.Allocate(count);
|
||||
wcoords.Allocate(count);
|
||||
|
||||
auto cwp = cellIds.WritePortal();
|
||||
auto pwp = pcoords.WritePortal();
|
||||
auto cellIdPortal = cellIds.WritePortal();
|
||||
auto pcoordsPortal = pcoords.WritePortal();
|
||||
for (vtkm::Id i = 0; i < count; ++i)
|
||||
{
|
||||
cwp.Set(i, cellIdGen(RandomGenerator));
|
||||
cellIdPortal.Set(i, cellIdGen(RandomGenerator));
|
||||
|
||||
PointType pc{ pcoordGen(RandomGenerator),
|
||||
pcoordGen(RandomGenerator),
|
||||
pcoordGen(RandomGenerator) };
|
||||
pwp.Set(i, pc);
|
||||
pcoordsPortal.Set(i, pc);
|
||||
}
|
||||
|
||||
vtkm::worklet::DispatcherMapTopology<ParametricToWorldCoordinates> dispatcher(
|
||||
|
Loading…
Reference in New Issue
Block a user