Clipper:getDifference

From GiderosMobile

Available since: Gideros 2015.03.22
Class: Clipper

Description

Computes the subject polygons minus the clip polygons (subject - clip).

(table) = Clipper:getDifference(fillType1,fillType2)

Parameters

fillType1: (number, optional, default = Polygon.FILL_EVEN_ODD) fill rule for the subject polygons
fillType2: (number, optional, default = Polygon.FILL_EVEN_ODD) fill rule for the clip polygons

Return values

Returns (table) array of Polygon objects (1 indexed) with the resulting polygons. May be empty when there is no overlap

Example

local res = clipper:getDifference(Polygon.FILL_EVEN_ODD, Polygon.FILL_EVEN_ODD)