Fix methods on Model to omit invalid entries.
Methods like `smtk::model::Model::cellsAs<T>()` and `smtk::model::Model::groupsAs<T>()` would append cursors that were invalid rather than omitting values not matching the container type. For example, calling `model->cellsAs<Edges>()` should only return cells owned by the model that are edges (as opposed to vertices, faces, or volumes). Without this patch, invalid `Edge` cursors were being inserted for each vertex, face, or volume in the model's set of cells.
Please register or sign in to comment