vtk-m/docs/changelog/dataset-no-throw-on-index-queries.md
Robert Maynard 89fa2c0293 Remove multiple vtkm::cont::CellSet from vtkm::cont::DataSet
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
2019-09-02 09:04:51 -04:00

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.