Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
ClipBoolean operations on polygons
type gpc_contour = int * gpc_vertex arrayA contour is the number of vertices and an array of them.
type gpc_polygon = int * int array * gpc_contour arrayThe type of polygons. Number of contours, array of hole/not hole, array of contours. 0 = not a hole, 1 = a hole.
val nullpoly : gpc_polygonThe null gpc_polygon.
val gpcml_printpolygon : gpc_polygon -> unitDebug printing of a polygon.
val gpc_polygon_of_box : float -> float -> float -> float -> gpc_polygongpc_polygon_of_box xmin xmax ymin ymax builds the obvious polygon.
val make_gpcpolygon : bool array -> gpc_vertex array array -> gpc_polygonBuild a polygon from an array of booleans (hole / not hole) and an array of vertex arrays
val gpcml_clippolygon : gpc_clipop -> gpc_polygon -> gpc_polygon -> gpc_polygongpcml_clippolygon op a b clips polygons a and b using operator op, returning the result.