SubsetIterator

class dolfin.cpp.mesh.SubsetIterator(*args)

Bases: object

A SubsetIterator is similar to a MeshEntityIterator but iterates over a specified subset of the range of entities as specified by a MeshFunction that labels the entites.

Overloaded versions

  • SubsetIterator(labels, label)

    Create iterator for given mesh function. The iterator visits all entities that match the given label.

  • SubsetIterator(subset_iter)

    Copy Constructor

end()

Check if iterator has reached the end

end_iterator()
next()
thisown

The membership flag