wrap.subset¶
-
wrap.
subset
(geom, polygonIndices)¶ Returns new geometry which contains specified polygons from geom.
- Usage:
- geomSubset, vertexMapping = subset(geom, polygonIndices)
Parameters: geom :
wrap.Geom
Input geometry.
polygonIndices : sequence of int
list of polygon indices from input geometry.
Returns: result : (geomSubset, vertexMapping)
- geomSubset :
wrap.Geom
geometry which contains polygons from geom according to polygonIndices.
- vertexMapping : list of int
mapping from new vertex positions (from geomSubset) to old vertex position (geom).