build

fun build(): Polygon

Return

A Polygon. The paths' directions are auto-corrected. All holes are clockwise, and all non-holes anticlockwise. Use the other build(false) if you want the paths in the order they were defined.


fun build(autoCorrect: Boolean): Polygon
fun build(convexity: Int?): Polygon


fun build(convexity: Int?, autoCorrect: Boolean): Polygon

Return

A Polygon

Parameters

autoCorrect

If true, then all paths are checked to ensure they are correctly ordered (clockwise for holes, anticlockwise for non-holes).