CDPolygons.mesa
Copyright © 1985 by Xerox Corporation. All rights reserved.
by Christian Jacobi, March 30, 1985 11:58:01 am PST
last edited by Christian Jacobi, May 29, 1985 10:25:18 am PDT
DIRECTORY
CD,
Imager;
CDPolygons: CEDAR DEFINITIONS =
BEGIN
PolygonPtr: TYPE = REF PolygonRec;
PolygonRec: TYPE = RECORD [points: LIST OF CD.Position, path: Imager.Trajectory];
IsPolygon: PROC [ob: CD.Object] RETURNS [BOOL] = INLINE {
RETURN [ob.class.objectType = $Polygon]
};
CreatePolygon: PROC [points: LIST OF CD.Position, lev: CD.Layer]
RETURNS [ob: CD.Object, offset: CD.Position];
--some restrictions on possible paths exist
--NIL or CD.Error if restrictions violated
END.