geometry.Geometry.select_prop#

Geometry.select_prop(prop, compact=False)#

Select elements by their property value.

Parameters#

prop: int or int array_like

The property value(s) for which the elements should be selected.

Returns#

Geometry (or subclass) object

An object of the same class as the caller, but only containing the elements that have a property value equal to prop, or one of the values in prop. If the input object has no properties, a copy containing all elements is returned.

See Also#