'This example creates a sphere and a reference plane,
'and uses that reference plane as a symmetry axis for
'the symmetrize polygon operator.
'
'It then reset the reference plane and set it back
'from the symmetrize polygon operator.
'Create the sphere and the reference plane
NewScene
CreatePrim "Sphere", "MeshSurface"
SetTransientReferencePlane "sphere.poly[5]"
'Apply SymmetrizePolygon on some polygons
ApplyTopoOp "SymmetrizePolygon", "sphere.poly[0-20]", siUnspecified, siPersistentOperation
'Use the reference plane as symmetry axis
SetSymmetrizePolygonOpRefPlane "sphere.polymsh.symmetrizepolygonop", "Transform"
'Reset the reference plane
SetTransientReferencePlane "sphere"
'Set the reference plane from the symmtry axis of the operator
SetRefPlaneFromSymmetrizePolygonOp "Transform", "sphere.polymsh.symmetrizepolygonop"
|