geometry.Geometry.where_prop#

Geometry.where_prop(prop)#

Find the elements having some property value.

Parameters#

prop: int or int array_like

The property value(s) to be found.

Returns#

int array

A 1-dim int array with the indices of all the elements that have the property value prop, or one of the values in prop.

If the object has no properties, an empty array is returned.

See Also#

  • set_prop(): Set the properties for the object

  • to_prop(): Create a valid set of properties for the object

  • select_prop(): Return a Geometry object with only the matching elements