wrap.selectPolygons

wrap.selectPolygons(geom, selectedPolygonIndices = [])

Creates modal dialog for selecting polygons on mesh. It is possible to use mesh’s polygon groups to speed up selection.

Returned list of polygons can be then saved by wrap.savePolygons() and loaded by wrap.loadPolygons().

Parameters:

geom : wrap.Geom

Input geometry can contain polygon groups.

selectedPolygonIndices : sequence of int, optional

For demonstration purposes you can provide user with pre-defined selection. Each polygon index should be >= 0 and < geom.nPolygons.

Returns:

result : list of int

Returns a list of polygon indices selected by the user.