21 polygon.SetPolygonMode( polygon.POLY_MODE_FILLED )
22 polygon.SetName(
'poly')
25 currentDoc.InsertObject( polygon )
38 yellowPolygon.SetPolygonMode( yellowPolygon.POLY_MODE_FILLED )
39 yellowPolygon.SetName(
'yellow')
41 currentDoc.InsertObject( yellowPolygon )
55 multiPolygon.SetPolygonMode( multiPolygon.POLY_MODE_FILL_AND_OUTLINE )
56 multiPolygon.SetShadingMode( multiPolygon.SHADING_GOURAUD )
57 multiPolygon.SetName(
'multi')
61 group.SetName(
'group')
62 currentDoc.InsertObject(group)
65 group.InsertObject(multiPolygon)
68 group.MoveObjectToGroup(yellowPolygon)
72 lookup = currentDoc.GetObjectByName(
'group')
90 def Process(prefix, x):
94 def PrintNames(group, prefix=''):
95 prefix = (prefix +
'.' if prefix
else '') + group.GetName()
100 PrintNames(subgroup, prefix)
102 PrintNames( currentDoc.GetObjectList() )