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 inprop. If the input object has no properties, a copy containing all elements is returned.
See Also#
remove_selected_prop(): Return all but the elements with propertyprop.where_prop(): Get the numbers of the elements having a specified property.select(): Select the elements with the specified indices.