• David Thompson's avatar
    Fix methods on Model to omit invalid entries. · 1415340a
    David Thompson authored
    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.
Model.cxx 6.77 KB