wrap.Geom.selectPolygonsByPolygroup¶
-
Geom.
selectPolygonsByPolygroup
(polygroup)¶ Select polygons by polygroup
Parameters: polygroup : string
Name of polygroup
Returns: list of polygons indices
Examples
# load model g = wrap.Geom(wrap.demoModelsPath + "HeadPolygroups_MakeHuman.obj") # show polygroups print g.polygroups ['Back', 'EarsOuter', 'Face', 'MouthOuter', 'Mouth', 'Ears', 'EarsInner', 'Eyes', 'EyesOuter', 'Nostrils', 'BackBottom'] # select polygroups eyePolygons = g.selectPolygonsByPolygroup('Eyes') # just show already selected polygons in viewport wrap.selectPolygons(g,eyePolygons)
New in version 1.3.2.