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, October 7, 1985 11:19:16 am PDT
DIRECTORY
CD,
Imager;
CDPolygons: CEDAR DEFINITIONS =
BEGIN
PolygonPtr: TYPE = REF PolygonRec;
PolygonRec: TYPE = RECORD [points: LIST OF CD.Position, path: Imager.Trajectory];
polygonClass: PRIVATE READONLY REF CD.ObjectClass;
IsPolygon: PROC [ob: CD.Object] RETURNS [BOOL] = INLINE {
RETURN [ob.class = polygonClass]
};
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.