mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 10:35:42 +00:00
89fa2c0293
By removing the ability to have multiple CellSets in a DataSet we can simplify the following things: - Cell Fields now don't require a CellSet name when being constructed - Filters don't need to manage what the active cellset is
576 B
576 B
DataSet queries for CoordinateSystem Indices don't throw
Asking for the index of a vtkm::cont::CoordinateSystem
by
name now returns a -1
when no matching item has been found instead of throwing
an exception.
This was done to make the interface of vtkm::cont::DataSet
to follow the guideline
"Only unrepresentable things should raise exceptions". The index of a non-existent item
is representable by -1
and therefore we shouldn't throw, like wise the methods that return
references can still throw exceptions as you can't have a reference to an non-existent item.