fix some examples
This commit is contained in:
parent
23b73103e0
commit
6455231882
@ -67,7 +67,10 @@ void TubeThatSpiral(vtkm::FloatDefault radius, vtkm::Id numLineSegments, vtkm::I
|
||||
// This generates a new pointset, and new cell set.
|
||||
vtkm::cont::ArrayHandle<vtkm::Vec3f> tubePoints;
|
||||
vtkm::cont::CellSetSingleType<> tubeCells;
|
||||
tubeWorklet.Run(ds.GetCoordinateSystem(), ds.GetCellSet(), tubePoints, tubeCells);
|
||||
tubeWorklet.Run(ds.GetCoordinateSystem().GetData().Cast<vtkm::cont::ArrayHandle<vtkm::Vec3f>>(),
|
||||
ds.GetCellSet(),
|
||||
tubePoints,
|
||||
tubeCells);
|
||||
|
||||
vtkm::cont::DataSet tubeDataset;
|
||||
tubeDataset.AddCoordinateSystem(vtkm::cont::CoordinateSystem("coords", tubePoints));
|
||||
|
@ -82,7 +82,7 @@ int main(int argc, char** argv)
|
||||
pathlineFilter.SetNextDataSet(ds2);
|
||||
// 2. The current and next times, these times will be used to interpolate
|
||||
// the velocities for particle positions in space and time.
|
||||
pathlineFilter.SetCurrentTime(time1);
|
||||
pathlineFilter.SetPreviousTime(time1);
|
||||
pathlineFilter.SetNextTime(time2);
|
||||
// 3. Maximum number of steps the particle is allowed to take until termination.
|
||||
pathlineFilter.SetNumberOfSteps(numSteps);
|
||||
|
Loading…
Reference in New Issue
Block a user