GetPoly ©1993-1994 Apple Computer. All rights reserved. by J. Christopher Bell This example shows how you can acquire a "points" structure for use with a clPolygonView. The GetPoly sample uses two techniques, one using shape recognition and another using all points in a pen stroke. To use shape recognition, the points structure is simply cloned in the editView's addChildScript. To capture the information from a clView, the stroke data is captured in the viewClickScript and converted into an object which can be used as a points structure. Notes on the sample: The shadowView clPolygonView is used to 'draw' the polygon that is input to the clView. To remove items from the clEditView, just scrub them Notice that if you draw something closely approximating a circle (or triangle or...) in the clEditView, the result is a circle. If you do the same thing in the clEditView, you just get the points, there is no cleanup.