mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
added changelog
This commit is contained in:
parent
0d818701c3
commit
a6c044df9a
16
docs/changelog/dataset_sources.md
Normal file
16
docs/changelog/dataset_sources.md
Normal file
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user