added changelog

This commit is contained in:
Li-Ta Lo 2019-09-11 10:19:54 -06:00
parent 0d818701c3
commit a6c044df9a
2 changed files with 17 additions and 2 deletions

@ -0,0 +1,16 @@
# Added Source class hierarchy
A new class hierarchy for dataset source was added. The intention is to
consolidate and refactor various (procedural) dataset generators for unit
tests, especially the multiple copy&past-ed implementations of the Tangle
field. As they are compiled into a library rather than as header files,
we also expect the overall compile time to decrease.
The public interface of dataset source is modeled after Filter. A new DataSet
is returned by calling the Execute() method of the dataset source, for example:
```cpp
vtkm::Id3 dims(4, 4, 4);
vtkm::source::Tangle tangle(dims);
vtkm::cont::DataSet dataSet = tangle.Execute();
```

@ -76,8 +76,7 @@ vtkm::cont::DataSet Tangle::Execute() const
{
vtkm::cont::DataSet dataSet;
const vtkm::Id3 vdims{ this->Dims +
vtkm::Id3{ 1, 1, 1 } }; //(dims[0] + 1, dims[1] + 1, dims[2] + 1);
const vtkm::Id3 vdims{ this->Dims + vtkm::Id3{ 1, 1, 1 } };
vtkm::FloatDefault mins[3] = { -1.0f, -1.0f, -1.0f };
vtkm::FloatDefault maxs[3] = { 1.0f, 1.0f, 1.0f };